1. 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

Discussion in 'XenForo Questions and Support' started by Maester Aemon, Feb 23, 2016.

  1. Maester Aemon

    Maester Aemon Member

    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.
     
  2. Brogan

    Brogan 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.
     

Share This Page