Hi. Using Xpro, fullwidth layout with pages using sidebars. I am trying to add a sidebar for my BadgeOS plugin widgets. I have a sidebar established and do see the pages listed on the sidebar and have checked them off (screenshot 1). The widgets do appear on my page here https://mysalus.org/community/awards-gallery.
They do not however show up on the next level uri’s /active-learner/ etc. I am also using the Extended Widget Options widget and have checked the relevant pages and posts that show there (screenshot 2). I also tried placing the Badge OS widgets in the main sidebar but that did not work either.
I assume the BadgeOS plugin is using custom post types and have read and tried these posst for guidance https://theme.co/apex/forums/topic/assign-sidebar-to-custom-post-type/ but adding code to my child functions.php , referencing the “types” in the BadgeOS shortcode crashes the page the shortcodes “types” are on. Here is the code I tried using the above reference article.

// 03. Add BadgesOS CPT Sidebar
// =============================================================================
function add_sidebar_custom_post() {
if( get_post_type() == ‘community-badge’) {
return ‘ups-sidebar-badges’;
} elseif get_post_type() == ‘personal-badge’) {
return ‘ups-sidebar-badges’;
} elseif get_post_type() == ‘achievement’) {
return ‘ups-sidebar-badges’;
}
}
add_filter( ‘ups_sidebar’, ‘add_sidebar_custom_post’ );
I also read and tried the suggested solution here and https://theme.co/apex/forum/t/sidebars-not-appearing/2323 and have it currently in my functions.php. But that did not solve the problem either.
Thought I would see if there is something simple I am missing or if others have tried this?
Thanks in advance