Support » Plugin: Q and A FAQ and Knowledge Base for WordPress » Using Conditional Tags

  • Resolved cozbaldwin

    (@cozbaldwin)


    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/

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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.

    bump. anyone out there?

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

    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')

    Thanks cozbaldwin!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Using Conditional Tags’ is closed to new replies.