latest post at top of list
Quote from nemo on June 14, 2019, 8:15 amI’m using Twenty Nineteen and have added those lines but it has changed the order, still oldest first
Here is that php edit Please tell me I’ve done it wrong!
* SVG Icons related functions.
*/
require get_template_directory() . ‘/inc/icon-functions.php’;/**
* Custom template tags for the theme.
*/
require get_template_directory() . ‘/inc/template-tags.php’;/**
* Customizer additions.
*/
require get_template_directory() . ‘/inc/customizer.php’;
function custom_asgarosforum_filter_get_posts_order($order) {
$order = ‘p1.id DESC’;
return $order;
}
function custom_asgarosforum_filter_get_posts_order($order) {
$order = ‘p1.id DESC’;
return $order;
}
add_filter(‘asgarosforum_filter_get_posts_order’, ‘custom_asgarosforum_filter_get_posts_order’);
I’m using Twenty Nineteen and have added those lines but it has changed the order, still oldest first
Here is that php edit Please tell me I’ve done it wrong!
* SVG Icons related functions.
*/
require get_template_directory() . ‘/inc/icon-functions.php’;
/**
* Custom template tags for the theme.
*/
require get_template_directory() . ‘/inc/template-tags.php’;
/**
* Customizer additions.
*/
require get_template_directory() . ‘/inc/customizer.php’;
function custom_asgarosforum_filter_get_posts_order($order) {
$order = ‘p1.id DESC’;
return $order;
}
function custom_asgarosforum_filter_get_posts_order($order) {
$order = ‘p1.id DESC’;
return $order;
}
add_filter(‘asgarosforum_filter_get_posts_order’, ‘custom_asgarosforum_filter_get_posts_order’);
Quote from Asgaros on June 14, 2019, 3:41 pmHello @nemo
The code is working fine so far for sorting the posts inside of topics. Can you check it again if you have added it to the correct theme? Or do you want to sort topics instead of posts?
Hello @nemo
The code is working fine so far for sorting the posts inside of topics. Can you check it again if you have added it to the correct theme? Or do you want to sort topics instead of posts?
Quote from drummerwb on January 24, 2020, 7:03 pmHas there been any thought to making this an option we could “select” in the Settings section? I’m not comfortable playing within the .php and FTP realm because I know enough to be dangerous – but not enough to save myself if/when I get in too deep.
But, it’s a setting I’d LOVE to see.
And on a side note, it would be wonderful to have a setting to “Show/Hide ‘Last Post’ field” in forums and topics. I’ve tried searching for it here in your forum, but haven’t found the topic yet.
Thank you for a wonderful plug-in. My entire site has begun utilizing the Asgaros Forums as the main landing page for my subscribers!! All thanks to you!!
Has there been any thought to making this an option we could “select” in the Settings section? I’m not comfortable playing within the .php and FTP realm because I know enough to be dangerous – but not enough to save myself if/when I get in too deep.
But, it’s a setting I’d LOVE to see.
And on a side note, it would be wonderful to have a setting to “Show/Hide ‘Last Post’ field” in forums and topics. I’ve tried searching for it here in your forum, but haven’t found the topic yet.
Thank you for a wonderful plug-in. My entire site has begun utilizing the Asgaros Forums as the main landing page for my subscribers!! All thanks to you!!
Quote from Asgaros on February 3, 2020, 8:39 amHello @drummerwb
Thanks for your suggestions! Thats something I will try to add in one of the upcoming updates. 🙂
Hello @drummerwb
Thanks for your suggestions! Thats something I will try to add in one of the upcoming updates. 🙂