Define specific category name in PHP
I would advise against query_posts for readability purposes as its easier to make mistakes and you can end up muddled when you nest them. ( You also missed out an equals sign in your syntax. Instead use WP_Query, and check for when no posts are found, e.g. this code: <div class=”category-section”> <h2><?php the_category(); ?></h2> <div … Read more