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


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.


XenForo moderator
Staff member
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.