WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] adding conditional tag on Category Page? (4 posts)

  1. greenpeas
    Member
    Posted 6 years ago #

    I am trying to figure out the way to set up my archive.php to include a separate sidebar when displaying a particular category page. http://fbcwaynesboro.org/archives/category/sermons
    is the page, it uses the archive.php I believe...

    Would this be possible using a simple conditional tag?

    Would I just need to add this within the archive.php?

    Thanks!

  2. moshu
    Member
    Posted 6 years ago #

    Good reading:
    Template_Hierarchy
    Conditional_Tags

    also, search, there have been posted many conditional examples for different sidebars.

  3. greenpeas
    Member
    Posted 6 years ago #

    OK... think this is resolved, I found the article on Category templates (http://codex.wordpress.org/Category_Templates)
    and this seems to work very well!

  4. greenpeas
    Member
    Posted 6 years ago #

    Thank you for all the tons of info you've posted Moshu!

Topic Closed

This topic has been closed to new replies.

About this Topic