WordPress.org

Forums

Widget Logic
[resolved] is_archive() shows on cat and tag pages also not just archive pages (3 posts)

  1. epitaph
    Member
    Posted 4 years ago #

    is_single() works
    is_category() works
    is_tag() works
    is_archive() works but also shows up on category and tag pages. Would like it to just show on archive pages

    using Thesis

    Thanks

  2. alanft
    Member
    Plugin Author

    Posted 4 years ago #

    http://codex.wordpress.org/Conditional_Tags#Any_Archive_Page

    is_archive()
    When any type of Archive page is being displayed. Category, Tag, Author and Date based pages are all types of Archives.

    so if you want to filter out particular archive pages you can do eg:

    is_archive() && !is_tag()

  3. epitaph
    Member
    Posted 4 years ago #

    Thanks alanft

    Got it

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic