Multiple Forum IDs
-
I need a way to pull topics from the current forum as well as all subforums in the topics loop. To do this, I’ve fetched all forum IDs of the subforums using bbp_get_forum_id() and bbp_forum_get_subforums().
So now I have an array of all subforum IDs stored in $forum_ids.
I started to write a custom query that I can reset so that I won’t disturb the current context of the topic_query but then I realised…I don’t know how to pass the subforum IDs to the query. Is there any functionality that allows me to select from multiple forums? If not, can you direct me to where I have to modify the code? There is so much abstraction that my head is swimming.
- You must be logged in to reply to this topic.