Please or Register to create posts and topics.

Latest post – shows the oldest first

Page 1 of 2Next

Hi Support,

On the main page of Forum I see last post column on the right hand side (with the latest post date)  and when I click on it rather than showing the latest post it takes me to the last page under the Topic. Is there a way to show the last post rather than the last page? Please help.

Thanks in advance

Uploaded files:
  • Capture.jpg

I have added this code but still no luck, it still shows the second page first in the display

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

 

I noticed the link for the post is showing like this :

https://asa.org.au/asa-forum/topic/c19-vaccination-for-anaesthetists/?part=2#postid-841

I am not sure why ?part=2 is added to the url as all the other posts show :

https://asa.org.au/asa-forum/topic/cognitive-disability-and-anaesthesia#postid-765

So what am I missing here, please helps as this is driving me mad 🙂 I am sure there some simple explanation out there, and you guys GURUS can help.

Thanks

Paul

Hi Developer,

Please help as I see no reply from your end. Thanks Paul

@ozredwine

I have tried to understand what you are asking for,  it’s not very clear.

My current interpretation is:

When there is a click on the Forum right column “last post date”
you will get all posts reordered with oldest post first
so last post will show on top of first page?

Thanks Veronica, when I see the link for the latest post on the Main Forum page as per the attached image, the url takes me to the last page of the Topic and not to the linked post (latest one) The URL has a ?part=2 which takes the control to the last page in the Topic

https://asa.org.au/asa-forum/topic/c19-vaccination-for-anaesthetists/?part=2#postid-841

When I click on other post on the main page the URL does not have ?part=2

For example : https://asa.org.au/asa-forum/topic/welcome-to-eac-piac-new-confidential-discussion-platform#postid-840

I want to understand where this ?part=2 coming from and why it is added to the URL, it is misleading when we click on the link of the latest post to show the old post rather than the latest one.

I hope this clears my query.

Thanks again for helping

Regards

Paul

 

Uploaded files:
  • Capture.jpg

@ozredwine

Part= depends on the number of posts in the last Topic and in your case part=2 adresses page 2

Without the part= parameter you address first and the only page for that Topic

Source for number of posts per page can be found in the Forum settings.

Thanks so much Veronica, so there is any way to get the latest post when user clicks the URL? May be take them to First page rather than second page (sort order the latest to oldest)

 

Quote from ozredwine on March 6, 2021, 12:51 am

I have added this code but still no luck, it still shows the second page first in the display

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

 

Remove this code.

@ozredwine

You should use “Show newest posts first in topic” instead of “Show newest topics first in forum

from this page?  https://asgaros.com/support/topic/change-ordering-of-poststopics/

Page 1 of 2Next