WordPress.org

Ready to get started?Download WordPress

Forums

Q and A FAQ and Knowledge Base for WordPress
[resolved] Using Conditional Tags (6 posts)

  1. cozbaldwin
    Member
    Posted 1 year ago #

    I'm using Widget Logic and I'd like to display my widget of FAQ Categories only on pages within the FAQ system... but I've tried everything I can think of and still can't find what I'm looking for.

    If I want the widget to appear only on the main FAQ page (the archive of all questions), single Faq category archive pages, and single faq question pages, what conditional tag do I need to use?

    Thanks.

    http://wordpress.org/extend/plugins/q-and-a/

  2. cozbaldwin
    Member
    Posted 1 year ago #

    To be a little more clear, what is a common parameter found within these pages I could use?

    For instance, i've tried

    • is_tax('faq')
    • is_category('faq')
    • is_post_type_archive('qa_faqs')

    and a lot more but none of them seem to work. I can't seem to find a parameter and/or a value that is unique to these pages.

  3. cozbaldwin
    Member
    Posted 1 year ago #

    bump. anyone out there?

  4. cozbaldwin
    Member
    Posted 1 year ago #

    PLEASE, someone give me the conditional tags to use. Puhleeez.

  5. cozbaldwin
    Member
    Posted 1 year ago #

    OK, well I found what I was looking for.
    For any others out there looking to use conditional tags with widgets or whatever else, here's what you'll need:

    FOR FAQ CATEGORY ARCHIVE PAGES:
    is_tax('faq_category')

    FOR FAQ SINGLE PAGES:
    is_singular('qa_faqs')

    and of course,
    FOR THE MAIN FAQ PAGE:
    is_page('faq')

  6. chainznanz
    Member
    Posted 1 year ago #

    Thanks cozbaldwin!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic