Forums

show all tags from a category (2 posts)

  1. ankatank
    Member
    Posted 2 years ago #

    on the home page of my site, when you click "tags" a list of all the tags used on the site appears.
    http://ankatankdesign.com/makes/

    when you go to a different section - sketchbook, print, interactive etc - clicking the tag button still displays all the tags from the site, but above those, tags just from the particular section you're viewing are shown. Problem is, it's only showing tags from the first post of that section.
    http://ankatankdesign.com/makes/these/interactive/

    1. does anyone know how i can modify my code to make it display all the tags from the section you're viewing?

    2. is there any way to modify the "all tags" portion to view all tags EXCEPT those from one category?

    here is my tag code:

    <div id="tag_container">
        <div id="show_tags" class="show_tags">
             <?php if (is_home()){          
    
               } else { ?>
    
                  <h2 class="tag_heading"> <?php single_cat_title('' , 'true' );
                  echo ' tags<br />'; ?> </h2>
    
            <?php
                  the_tags( '', '&nbsp; ♥ &nbsp;', '' );
                  echo '<br /><br />';
                  echo '<h2 class="tag_heading">all tags</h2><br />';
                }
             ?>
    
            <?php
            $args = array('smallest'  => 8, 'largest'  => 8, 'number' => 1000, 'separator' => '&nbsp; ♥ &nbsp;',);
            wp_tag_cloud( $args );
            ?>
        </div>
    </div>

    Any help would be greatly appreciated!

  2. MichaelH
    Volunteer
    Posted 2 years ago #

    There is the TDO Tag Fixes plugin -- make sure you read what others have to say about this plugin as there may require some code fixes.

    http://wordpress.org/extend/plugins/tdo-tag-fixes/

Topic Closed

This topic has been closed to new replies.

About this Topic