Forums

[resolved] wp_tag_cloud uses archive.php instead of tag.php (2 posts)

  1. niceandripe
    Member
    Posted 1 year ago #

    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?

  2. niceandripe
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic