If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
It seems like this should be simple, but I can’t seem to get it to work. I added some widgets to “Sidebar Blog” and they appear under Portfolio items as well. I’ve tried creating a special widgets area for Portfolio, as well as one for category “Materials” which is assigned to all Portfolio items, but no luck. It occurs to me that it may not work that way, but I can’t seem to find any other way to do it. Hopefully I’m missing something obvious.
Here is an example. The sidebar items refer only to blog posts:
you can use plugins like: http://wordpress.org/extend/plugins/widget-logic/ to exclude widgets from the portfolio items page. As condition use:
if (get_post_type() != 'portfolio')
if you’d like to NOT display the widget on portfolio pages or:
if (get_post_type() == 'portfolio')
if you’d like to ONLY display the widget on portfolio pages.
For others reading this, I had to omit the “If ” part to get it to work. I assume that part is implied in the widget-logic plugin.
The topic ‘Different sidebar for portfolio items’ is closed to new replies.