Opened 3 years ago
Closed 3 years ago
#14337 closed defect (bug) (invalid)
wp_tag_cloud uses archive.php instead of tag.php
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 3.0 |
| Severity: | normal | Keywords: | wp_tag_cloud, archive.php, tag.php |
| Cc: |
Description
if i use
wp_tag_cloud('');
it uses tag.php when i click a tag
however, if I use
wp_tag_cloud(array('taxonomy'=>'directory-category', 'format'=>'list'));
then it uses archive.php !
how can i force it to use tag.php?
Change History (1)
Note: See
TracTickets for help on using
tickets.

tag.php is only loaded for post tags.
You should create a new taxonomy.php file and place this line of code in it:
<?php include ./tag.php; ?>
See http://codex.wordpress.org/Template_Hierarchy
Also, please use the Support Forums next time.