[plugin] widget logic — get widgets to display on pages of a category
-
Hi folks,
I’m sure this is just a PHP coding question, but I’m not expert at PHP coding. I installed the Widget Logic plugin in order to change the ads that display contextually (so that for example, an ad for Gerber child life insurance is not displaying on the page with retirement advice but does display on the insurance page and even on the paying for college page).
I’m testing it with just one category right now, the “technology” category. I added in “is_category (‘technology’)” and it displays the appropriate ad (Mozy backup in this case) on the “Technology” category page. However, it doesn’t display on individual posts that are part of the technology category.
I know I could simply add a modifier || is_page() and then name the individual pages as well, but that’s time consuming since I try to add four articles per day to my blog and having to go in and modify the code each time I add a new page seems like a huge waste of time. Is there any way to get it to display on any page which is part of a particular category? Do I have to add custom tags to the pages in order to do it?
Like I said, I imagine this is a coding question in PHP, but I’m an extreme novice when it comes to this so any help is appreciated.
My blog is https://www.thepersonalfinancehelpcenter.com.
You can see the plugin working on the following page: https://www.thepersonalfinancehelpcenter.com/category/technology/
However, if I go to a post from the technology section: https://www.thepersonalfinancehelpcenter.com/2011/01/28/the-5-best-free-personal-finance-apps-for-iphone-and-android/ it doesn’t appear there. Any suggestions greatly appreciated.
Thanks everyone.
Eric
- The topic ‘[plugin] widget logic — get widgets to display on pages of a category’ is closed to new replies.