How do I insert a bbPress single topic shortcode dynamically, using a template?
I want to output bbPress single topic shortcodes with different IDs, through my single post template.
On post with the title “A” shortcode [bbp-single-topic id=6041], on post with the title “B” shortcode [bbp-single-topic id=6042], etc…
And the matching I need it via title strings, meaning that the topic with id 6041 would have the title “A”, and the topic with id 6042 would have the title “B”.
How to achieve this, and what would be the dynamic query?
I am using bbPress instead of comments, as they are post type, and I want to use this advantage.
- You must be logged in to reply to this topic.