Changing bbpress.php To Support Regular Post Tags
-
To add standard wp post_tag support for BBPress – Post Type – Topic… I added the following code starting about line 557 to bbpress/bbpress.php
// Topic Taxonomies
$post_type['taxonomies'] = array(
'post_tag'
);// Register Topic content type
register_post_type(
bbp_get_topic_post_type(),
apply_filters( 'bbp_register_topic_post_type', array(
'taxonomies' => $post_type['taxonomies'],
To get the topics to show on regular wordpress tag pages I used the snippet from Justin Tadlock edited for tag pages and post type topic.
After limited testing, everything seems to work as I wanted – bbpress topics show up on regular post_tag archive pages – as long as the tag is added to the topic from the Admin side.
Because I know enough abut wordpress to occasionally be dangerous, my questions:
1. Is this a bad idea for some reason I don’t know about?
2. Provided it’s not a terrible idea, Is there a way to future proof this hack? I tried creating a bbpress directory in my themes main directory and adding the edited bbpress.php there, but it didn’t work.Any thoughts would be greatly appreciated,
JW
You must be logged in to reply to this topic.