I’m looking for a way to hide a specific category title (not all but just one specific category title) from being displayed on the home page, archives, and search results but still show the posts tagged under the category.

Is it possible to do it via CSS or functions hook?

Keep in mind that I want to hide the category title (not the posts under the category. Just the title) from being displayed on home page, archives, and search results.

However, the category name should be displayed on posts.

  • How are these categories being shown? I don't believe it's possible to write a one size fits all answer given that there are so many ways a category might be shown or listed, more information is needed
    – Tom J Nowell
    Jan 20, 2021 at 21:40
  • Can you share your current code? As another user commented, the answer to this question will depend on a lot of things, such as whether the listing is currently displayed by your theme, or by your widgets, etc. In general, you may be able to modify the function that's currently being called, and exclude the category title from the display if it matches the category ID you wish to exclude.
    – nightowl
    Jan 21, 2021 at 0:37

1 Answer 1


This code works perfect. Note that 137 is the category ID that I wish to hide and .home is the page where I don't want it to be displayed

.home .entry-category-item-137 {
    display: none;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.