My website has three “sub-sections” (El Paso / Monterey / New Mexico) each one defined by its own “Category.”
Each sub-section needs to display their own Sidebar.
I have been able to make the correct Sidebar Automatically appear on the correct “Pages” in each sub-section, but I cannot make the correct Sidebar appear on the “POSTS” that go with each sub-section.
I know that I can assign the sidebar manually, post by post, but I need for it to be automatic once the post has been assigned a Category.
I have tried this piece of code found the Apex Forum:
but I cannot get it to function on my site.
I suspect that there are elements of this code example that are specific to the site in question, and that will not work on mine.
Can you send me a Code Snippet that is “neutral,” and ready for my site-specific information.
I am running WordPress 4.9.4
and the Integrity Stack
Here is the URL for my Developer Site:
http://dev-guestlife.pantheonsite.io/
What other information do you require?
Best Regards.

