Getting widget-logic to actually work
-
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: https://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 IDis_category(Music)
————— where Music is the name of the categoryis_category(music)
————— where music is the name of the category slugNone 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
- The topic ‘Getting widget-logic to actually work’ is closed to new replies.