WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic
Widget Logic code to display menu on specific category and subcategories (3 posts)

  1. sventhebaker
    Member
    Posted 3 years ago #

    Hello!
    Can't figure out how to get Widget Logic to place a menu on one category archive page and on it's subcategories.
    The slug for my parent category= las-vegas

    I put-- is_category(‘las-vegas’)
    But it shows up on every archive page including
    http://www.helpvetsnow.org/category/district-of-columbia/dcnews/.

    Any idea on how to make it so that a menu ONLY shows up on certain category pages and their subpages?
    Also, should I always use single quotation mark inside the parenthesis? ('category-name')?
    Thanks!

    Stephen

    http://wordpress.org/extend/plugins/widget-logic/

  2. stvwlf
    Member
    Posted 3 years ago #

    I don't know if your code is like this or if its just the forum software but the single quotes you have inside the parentheses are not seen by WP or PHP as quotes. You can use either single or double quotes. You can't use fancy quotes. If you are using them try changing them to regular quotes.

  3. sventhebaker
    Member
    Posted 3 years ago #

    Thanks so much! It worked!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic