Forums

Join
bbPress Support ForumsTroubleshootingSolution for Tags not getting deleted in user installed Themes

Info

Solution for Tags not getting deleted in user installed Themes

  1. I have seen many people asking that tags are not getting deleted in bbPress 1.0 (Even I faced the same problem, but it was working in the default theme). So I just thought of writing a solution for it.

    Open the topic-tags.php of your theme.
    You would find something like this:

    <?php if ( $public_tags ) : ?>
    <div id="othertags">
    		<ul id="yourtaglist">
    		<?php foreach ( $public_tags as $tag ) : ?>
    			<li id="tag-<?php echo $tag->tag_id; ?>_<?php echo $tag->user_id; ?>">
    				<a href="<?php bb_tag_link(); ?>" rel="tag"><?php bb_tag_name(); ?></a> <?php $tags = bb_get_tag_remove_link (); if ($tags) echo '<small>'.$tags.'</small>'; ?>
    			</li>
    		<?php endforeach; ?>
    		</ul>
    	</div>

    Replace it with:

    <?php if ( bb_get_topic_tags() ) : ?>
    		<?php bb_list_tags(); ?>

    That's it!

    You can also view the changes to topic-tags.php of the default theme in the trac:
    http://trac.bbpress.org/changeset?old_path=%2Ftrunk%2Fbb-templates%2Fkakumei%2Ftopic-tags.php&old=940&new_path=%2Ftrunk%2Fbb-templates%2Fkakumei%2Ftopic-tags.php&new=2344

  2. You must log in to post.