Notifications
Clear all

Limited Support

Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.

We appreciate your patience and understanding while our team is away. Thank you for being part of the wpForo community!

Merry Christmas and Happy Holidays! 🎄

wpForo 1.x.x [Closed] How to get first postid from topicid in php code

3 Posts
2 Users
0 Reactions
1,481 Views
Posts: 51
Topic starter
(@basatexcellent)
Trusted Member
Joined: 8 years ago

Anyone know how to get the first_postid in php code when the topicid is known?

In SQL something like:

SELECT first_postid FROM wp_wpforo_topics WHERE topicid = 92;


2 Replies
Sofy
Posts: 5637
 Sofy
Admin
(@sofy)
Support Team
Joined: 8 years ago

Hi @basatexcellent,

I'll ask developers and let you know asap. 


Sofy
Posts: 5637
 Sofy
Admin
(@sofy)
Support Team
Joined: 8 years ago

@basatexcellent,

Here it is:

<?php $first_postid = wpforo_topic( $topicid, 'first_postid' ); ?>