on the archive.php I have:
<h2>Category: <?php echo single_cat_title(); ?></h2>
Is it possible if it is opened because of a click on the tag cloud that the tag header is listed?
Tania
on the archive.php I have:
<h2>Category: <?php echo single_cat_title(); ?></h2>
Is it possible if it is opened because of a click on the tag cloud that the tag header is listed?
Tania
yes, that is possible;
to have your tag name shown instead, try some code with a conditional statement:
<?php if (is_category()) { ?>
<h2>Category: <?php echo single_cat_title(); ?></h2>
<?php } elseif( is_tag() ) { ?>
<h2>Tag: <?php echo single_tag_title(); ?></h2>
<?php } ?>
http://codex.wordpress.org/Conditional_Tags
http://codex.wordpress.org/Function_Reference/single_tag_title
This topic has been closed to new replies.