Please or Register to create posts and topics.

latest post at top of list

PreviousPage 2 of 2

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’);

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?

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

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!!

Asgaros has reacted to this post.
Asgaros

Hello @drummerwb

Thanks for your suggestions! Thats something I will try to add in one of the upcoming updates. 🙂

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!
PreviousPage 2 of 2