WordPress.org

Ready to get started?Download WordPress

Forums

One post for tag archive don't show single.php (3 posts)

  1. Taylor Baybutt
    Member
    Posted 3 years ago #

    This problam is so simple but I can't seem to find any resources regarding it except for this thread http://wordpress.org/support/topic/340882

    I want to show a tag archive regardless of whether there is one post or not. Does anyone have a solution for this?

  2. Taylor Baybutt
    Member
    Posted 3 years ago #

    any ideas?

  3. Taylor Baybutt
    Member
    Posted 3 years ago #

    Ok, I solved it by putting

    <?php /* If this is a single post */ if( is_single() ) { ?>

    at the top and

    <?php /* If this is a tag archive */} elseif( is_taxonomy('author') ) { ?>

    where my taxonomy page code starts
    and then close it with a

    <?php } ?>

    switch "is_taxonomy('author')" with "is_tag()" if you're not using a custom taxonomy.

Topic Closed

This topic has been closed to new replies.

About this Topic