• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 Get link of the latest thread in node_forum and NOT latest post

#1
Hey,

I've been trying to figure out how I can get the link to latest thread but I can't seem to find anything.

I know that {xen:link posts, $forum.lastPost} will get me link to last thread having post but I want a link to the last thread that was created. I also want the title of last thread.

I have sorting on start date descending if that matters.
 

Brogan

XenForo moderator
Staff member
#2
There is no equivalent variable for the latest/newest thread in a forum.

While you can sort on thread start date using {xen:link forums, $forum, '_params={$orderParams.post_date}'}, there is no direct link to the first returned thread.