Latest post – shows the oldest first
Quote from ozredwine on March 8, 2021, 7:51 amThanks 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’);
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’);
Quote from Veronica on March 8, 2021, 12:57 pm@ozredwine
Thanks, I have reproduced your issues with the links now and I will try to find a solution.
Thanks, I have reproduced your issues with the links now and I will try to find a solution.
Quote from Veronica on March 8, 2021, 3:12 pm@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/
@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/
Quote from ozredwine on March 9, 2021, 2:25 amHi 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 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
Quote from Asgaros on March 29, 2021, 4:35 amHi @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. 🙂
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. 🙂