Show BBpress Topic Tags from Inside WordPress

blog.123

I’ve been hosting a forum at http://diylilcnc.org using WordPress and BBrpess integration, so that WordPress and BBpress share user accounts. This is great for the most part; one drawback is that while you can use some of the WordPress functions inside BBpress, you can’t go the other way and call BBpress functions from inside WordPress.

For example, if you want to show a tag cloud with your forum’s topic tags on a WordPress post or page, you  might try to use the function bb_tag_heatmap, but that function only works if you’re on a BBpress page. You might also think of trying wp_tag_cloud, but since WordPress and BBpress are looking at different database tables for their tags, it won’t work either.

Here’s a pretty hacky way of making WordPress show BBpress topic tags when you’re not on a forum page. I put the code below into my WordPress theme’s sidebar.php.

by 14 years ago

COMMENTS

  1. paykasa

    Your website design gives that look like vintage and html 5 mixed Idk but looks awesome!

RESPOND

Your email address will not be published. Required fields are marked *