Making bbPress functions available for WordPress?
-
How would I make bbPress functions available for a WordPress template file?
Specifically, I’m building some custom RSS feeds, one of which lists the latest topics posted on the website, but with some modifications. While I can pull the latest topics with a query_posts() call using (‘post_type’ => ‘topic’) and parse them with a standard post loop, I can’t figure out how to access tags related to each topic. I assume that bb_get_topic_tags() should get me the tags but the function is not available for the RSS file template which is in my WordPress template directory. I have basically been using this method for custom RSS feeds.
Since a function_exists() call for bb_get_topic_tags() returns false, I assume that I should first prime or load the bbPress plugin somehow. But how? Or am I approaching this completely wrong? I suppose I could always do a direct SQL query but I would like to avoid that if possible.
I have tried searching here and elsewhere but keep drawing blanks. The closest I could get to is this topic but it doesn’t really give an answer, or at least not one that I can understand.
I’m running the latest public bbPress and WordPress versions.
- You must be logged in to reply to this topic.