I have categories like
movies on my website and when a user visits any of these categories the content in the sidebar is displayed depending on the category they are in. So gaming content for the gaming category, movie related content for movies.
When a user selects a post in either of these categories, I have it defaulting to the sidebar that displays on the home page since I don't know how to keep the sidebar displaying the same content that is on the category pages.
The closest I could get would be something like
<?php if ( is_single() ) : ?>. How would I add
is_category( 'gaming' ) so it can target a
single page (single.php) that belongs to the category