XF 2.0 How to get first post in whats_new_posts results macro?


Well-known member
I want to retrieve the first post for each thread in whats_new_posts results macro. $thread does contain first_post_id, but is there any way to get the post message content just by template syntax? Similar to thread_preview: $firstPost.message.


Well-known member
If you expand the relations submenu it should be in there...

Thanks, it is there, the problem is that I can't distinguish between items that I can actually use and purely informative variables. For example there is one called AlertOptOut but I can't use it like that: $thread.AlertOptOut.


XenForo developer
Staff member
I don't see why the Thread entity would have that. That's part of the UserOption entity (which means it'd be $thread.User.Option.AlertOptout).