Hello,
I need to show a sidebar in a CPT Page, but for some reasons, it is not showing up.
This is how I did that.
- I set up a Taxonomy and a CPT called “area tematica”.
- I built one of the pages of the CPT with Looper (I am not sure if it has anything to do with it though)
- I created a sidebar and assigned it to Post Types “area tematica”
From theme options > Layout and Design, the Layout is set on “content sidenbar”. Since the sidebar was still not showing up, I tried to add the following code to functions.php:
add_filter( 'ups_sidebar', 'assign_sidebars' );
function assign_sidebars($sidebar){
if(0<3){
return 'ups-sidebar-sidebar-areetematiche';
}
return $sidebar;
}
but without success - meaning that the sidebar is not showing anywhere.
Is this due to a conflict with CPT?
I also checked for plugin conflict and found nothing.
Thank you