Sidebar not showing up - Taxonomy and CPT

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.

  1. I set up a Taxonomy and a CPT called “area tematica”.
  2. I built one of the pages of the CPT with Looper (I am not sure if it has anything to do with it though)
  3. 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

Hi Eugenio,

Thanks for reaching out.
It will be very difficult to recognize the reason behind it without investigating the CPT and the settings through the Admin Dashboard. I would suggest you please provide login credentials for your site in a secure note to examine it further, including:

– WordPress Site URL & Login URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

Hi Eugenio,

The Single page for the Custom Post Type will be single-<post_type_name>.php file and it works as a default template which you have overridden with a blank template.

I would suggest you remove/rename the file and check if the sidebar works for you.
Thanks

Thank you @tristup , we resolved it!

Hey Eugenio,

We’re glad that you’re able to figure it out! If you have any other concerns or clarifications regarding our theme features, feel free to open up a new thread.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.