Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#14337 closed defect (bug) (invalid)

wp_tag_cloud uses archive.php instead of tag.php

Reported by: niceandripe Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: General Keywords: wp_tag_cloud, archive.php, tag.php
Focuses: Cc:


if i use


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)

#1 @scribu
5 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

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.

Note: See TracTickets for help on using tickets.