Question About Messing With Category Pages and Descriptions

Wrap it up! Err, in a conditional statement that is. if ( is_category( ‘My Category’ ) ) { echo ‘<p>’ . category_description() . ‘</p>’; } That is just a crude example, though. We would need to see your code to give a definitive answer. Reference: https://developer.wordpress.org/reference/functions/is_category/

Category names dependent on each other?

If you look at the twentyfifteen theme (and the other bundled themes) you’ll find code similar to the following: (this is taken from the twenty fifteen theme from inc/template-tags.php) $categories_list = get_the_category_list( _x( ‘, ‘, ‘Used between list items, there is a space after the comma.’, ‘twentyfifteen’ ) ); if ( $categories_list && twentyfifteen_categorized_blog() ) … Read more