hello
i've put a button on my site that shows all the tags on the site with one of those javascript drawer effects when you click it.
problem is, it doesn't work properly. it only shows tags associated with the category page that is showing, or, if it's a single post page, the tags associated with that post. but, on the home page, where i have no content yet, it shows nothing, since nothing is tagged with anything.
i assume its getting the tag data from the loop, so when it's on a category page, it shows all the tags from all the posts in the loop on that page, but that's not what i want, i need the button to display all the tags of the site, no matter what page you're on.
i'm using "the_tags()" maybe there is a different tag function i'm supposed to call?
<?php the_tags( '', ' ♥ ', '' ); ?>
you can see it in action here (click different nav items to see that different tags display on different pages):
ankatankdesign.com/makes
here's the main code in my header
<div id="mainNavItems">
<li <?php if (is_home()){
echo 'class="current_page_item_home"';
} else {
echo 'class="cat-item"';
}
?>>
<a href="<?php bloginfo('url'); ?>/">Recent Stuff</a>
</li>
<?php wp_list_categories('title_li='); ?>
<li <?php if (is_page('photo')){
echo 'class="current_page_item_home"';
} else {
echo 'class="cat-item"';
}
?>>
<a href="http://ankatankdesign.com/makes/photo/">photography</a>
</li>
</div>
<br style='clear:both;' />
<div id="tag_link"><a href="#show_tags">tags</a></div>
<div id="tag_container">
<div id="show_tags">
<?php the_tags( '', ' ♥ ', '' ); ?>
</div>
</div>
so to recap, i just need the tag button to be able to display all tags for the site, not just those related to the post or category you're viewing.
thanks in advance for any help!