Please or Register to create posts and topics.

Latest post – shows the oldest first

PreviousPage 2 of 2

Thanks so much Veronica, This code “Show newest posts in topic” was already added in functions.php

Here is what is in my functions.php

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

/* Added by Paul Singh on 5/3/2021 – Show newest topics first in forum */
function custom_asgarosforum_filter_get_threads_order($order) {
$order = ‘t.id DESC’;
return $order;
}
add_filter(‘asgarosforum_filter_get_threads_order’, ‘custom_asgarosforum_filter_get_threads_order’);

 

@ozredwine

Thanks, I have reproduced your issues with the links now and I will try to find a solution.

@ozredwine

@asgaros I have found when using the code for displaying posts in reverse order
requires also sorting DESC in the get_post_link function line 278 in forum-rewrite.php
for displaying links without the last page parameter ‘?part=’ because result is always first page
and there is no filter to change the MySQL search order or to unset $additional_parameters[‘part’].

Reverse order code examples: https://asgaros.com/support/topic/change-ordering-of-poststopics/

Hi Veronica, Thanks so much in taking all the time and helping me with this issue. All working fine now. I am sure someone else will benefit from this update as well. Take care. Regards Paul

Hi @veronica

Thanks for the hint. The current filter is not 100% complete in terms of the functionality-adjustment. Seems I have to add a real option for this in a future update. 🙂

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