Hi. I am trying to get my posts and related post sidebars set-up and have used the kb1 https://theme.co/apex/forums/topic/adding-a-sidebar-to-a-blog-post-only/ as well as the kb2 https://theme.co/apex/forums/topic/create-sidebar-for-post-category/ as my guide.
My blog page (https://mysalus.org/community/town-hall/) is using The Grid plugin which pulls from 4 grids, each grid with their own distinct post type). Each post displays, with a blank sidebar. My issue is I can not seem to get sidebars assigned to the different single post pages.
Issue 1. When I assign my /town-hall page to the settings>reading > post page, a post page id 47971 (correct post id) but with âsudo textâ -see attached screenshot - appears instead of the correct /town-hall content which displays normally if not set in settings>reading > post page. Iâm conused here. Do I need to have my /town-hall page set to the post page in the reading pane for the main sidebar to show on the single posts?
I have a blank page setup https://mysalus.org/blog-page/ that shows the erroneous content described above. Once I get this working as it should be, I would like to assign my other three custom post types ⌠slugs are - members, partners, storefronts etc. to have their own side bars.
What I have tried thus far;
- Using kb1, i have set custom sidebars for single post types" and code snippets as follows. If I can get this default wp post set right and working I would plan to do the same for my other custom post types.
add_filter( âups_sidebarâ, âassign_engagement_sidebarâ);
function assign_single_sidebar($sidebar){
if (is_date() ){
return 'ups-sidebar-single-post';
}
return $sidebar;
}
add_filter( âups_sidebarâ, âassign_single_sidebarâ);
Thanks in advance for your help with this.