If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
How can I add widgets to the portfolio items in the Angular theme?
You can use plugins like: http://wordpress.org/extend/plugins/widget-logic/ which help you to filter/display widgets based on the post type.
You can use following conditional:
get_post_type() == 'portfolio'
Thanks for the response. With the conditional you gave me, can I also select only certain categories within the portfolio?
Unfortunately your solution did not work, is there another way to fix it?
In this case you can try the has_term conditional: http://codex.wordpress.org/Function_Reference/has_term
Use it like:
has_term( array('jazz', 'genre'), 'portfolio_entries' )
and instead of “jazz” and “genre” insert your term slugs or portfolio category ids. If this doesn’t work too something is messing with the conditionals or query. You can also try http://www.woothemes.com/woosidebars/ but I’m not sure if it works with Angular.
I added the following as the Widget Logic: has_term( array( ‘best-practices’), ‘portfolio_entries’ ) but unfortunately it still does not work. Am I doing something wrong?
The topic ‘Widgets Angular theme’ is closed to new replies.