I’m very confused about what code to use to have different widgets display on specific pages. Example:
On the About and Blog page I want the same two arbitrary text widgets and the categories widget to display but I want to omit the Meta and Blogroll widgets to NOT display on the About page.
How do I achieve this using the Widget Logic plugin?
Specifically looking for the code for the conditional tag because I am no expert at php yet…much obliged.
Actually, I am still have an issue with widgets I want to appear only in the ‘about’ page sidebar and not on the main blog page. I figure out how to get widgets I want to appear only on the main blog page (login, categories, links) but how do I get the reverse affect?
I tried this code: !is_page(‘blog’)
Because I want it ‘everywhere’ (about page) EXCEPT the BLOG PAGE.
It didn’t work….
Yes! My project: Display a Category listing on the blog pages but not the static pages, & not the static Home (front) page.
Add category widget, and put in Widget Logic code space: “is_home() || is_category()” Voila!
The trick is the blog posts page is considered “home” in WordPress. Example here.
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Using Widget Logic to display certain widgets on specific pages’ is closed to new replies.