Forums

[resolved] Getting widget-logic to actually work (3 posts)

  1. bqrney
    Member
    Posted 2 years ago #

    Posted this elsewhere as well.

    Love the thought of what this plugin is designed to do and will love to see it working even more.

    Site: http://www.wattscookinblog.com

    Goal: This site will have many categories, as can be seen in the top two navigation bars. When one of these categories is clicked both sidebars need to display unique content based on the category.

    My efforts: In a nutshell all my efforts so far have been failures. I have created a Text Widget with HTML and in the -- Widget logic -- box I have made many attempts using -- Conditional Tags -- such as

    is_category('14')
    is_category(14)
    --------------- where 14 is the category ID

    is_category(Music)
    --------------- where Music is the name of the category

    is_category(music)
    --------------- where music is the name of the category slug

    None of this works. is_category(14) is the current configuration.

    The text widget I am testing this on does not appear anywhere, if I remove the widget-logic it appears on the sidebar at all times.

    Please help me figure this out before I pull the few remaining hairs I have left.

    Regards,
    Mike

  2. Oren Yomtov
    Member
    Posted 2 years ago #

    It looks like its working now.
    Only in the "Music" category page I can see something in my sidebar.

  3. bqrney
    Member
    Posted 2 years ago #

    It is working now.. and I would love to share what the problem was but I changed so many things I am not sure what it is I actually did to make it work.

Topic Closed

This topic has been closed to new replies.

About this Topic