Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Hidde certain category from post meta

From quick look through related functions I don’t think there is one that retrieves terms for the post and allows explicit exclusion.

However there is a convenient filter the_category_list right inside the function you use, with array of category objects, before they are turned into HTML output.

This should be a very fitting place to check the array and exclude the category you wish to skip. As always take care to only add your filter within required context or check for context within it.

Related Posts:

  1. Checklist of selected categories
  2. Custom query with category exclusion and post-meta “whitelist”
  3. Hide post meta data on a specific category
  4. How to show author name only if the post is in a specific category?
  5. How to display singular form of category name?
  6. get_post_meta not working on category.php
  7. Is there a way to only show Custom Meta Data on single posts from certain catagories
  8. How to modify the output of wp_terms_checklist when used within the built-in category metabox on edit posts?
  9. Get Meta Keys of Custom Categories
  10. Custom meta boxes ID prefix showing on first category but not others
  11. Sending all categories associated with a post to Google Ad Manager for use with .setTargeting
  12. Remove “Category:” from Post meta
  13. Displaying data from custom fields on a specific category page
  14. Please tell how to stop the category from showing up on posts
  15. how to get postmeta info based on multiple categories?
  16. How can I hide the category term for posts with none set?
  17. How to create an automatic MultiColoumn MegaMenu with Categories WordPress
  18. Is There a Difference Between Taxonomies and Categories?
  19. List all subcategories from category
  20. How To Find Out WordPress Category Table in MYSQL?
  21. Add custom field to Category
  22. Get Category ID inside Category template
  23. Only one category per post
  24. WordPress Multisite – global categories
  25. Get the children of the parent category
  26. Get posts from sites in Multisite?
  27. WP REST API: filter by category 1 AND category 2
  28. How To Get Parent Category Slug of Current Post
  29. Display All Products by Category with WooCommerce
  30. What is the difference between a “tag” and a “category”?
  31. Is there an easy way to make a meta box have the tabs like the Categories meta box has?
  32. How to check if I’m on the last page of posts?
  33. Display posts from the same category using next/previous post link
  34. How would I get a taxonomy/category list inside a Gutenberg block?
  35. Can I set a default featured image for a category?
  36. Check if a post is in any child category of a parent category
  37. How to export and import taxonomies (category, tag and/or custom taxonomy) and their terms
  38. Force category choice before creating new post?
  39. Gutenberg editor add a custom category as wrapper for custom blocks
  40. WooCommerce: List All Categories
  41. How to get category and archive title?
  42. Get category ID from category slug (not working)
  43. How do I remove “Uncategorized” from posts with more than 1 category?
  44. How to add category to: ‘wp-admin/post-new.php’?
  45. Get rid of WordPress category, tag and author archives?
  46. Individual rss feed entry length for categories?
  47. How can I create a category landing page followed by pages of posts?
  48. Remove parent category from permalink? Basically only have the child category?
  49. Custom permalink structure leads to be 404 on pagination
  50. Retrieve Product category ‘NAME’ by product category ID – WooCommerce?
  51. Posts URL structure like site.com/category/the-post-title
  52. Can’t custom taxonomies have same terms (slugs) as categories?
  53. How to get permalinks with category base working with sub-categories
  54. How to remove the term “category” from category pagination?
  55. Using wp_category_checklist in a widget
  56. WP 3.9 TinyMCE no longer loads on category description editor
  57. On the category page, get the category object
  58. Get only the top level categories using get_categories() without foreach loop
  59. Get all categories and posts in those categories
  60. How to add featured image for category (without a plugin)?
  61. How to create a custom sort for WordPress categories
  62. How to display non-hierarchical taxonomy as terms with checkboxes?
  63. Category archive by year with permalink support /category/YYYY
  64. Best Way to Redirect Category to Page and Hide Category
  65. get_terms vs. get_categories: does it matter?
  66. What is a good robots.txt?
  67. Allow users to create their own feed from selected categories?
  68. Hook when category is added to post
  69. get_categories for custom post type with a specific custom taxonomy attached
  70. Add a URL prefix to permalinks of one category of posts only
  71. How do you add categories to custom post types in WordPress?
  72. Create a category list page
  73. Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/
  74. Woocommerce get category image full size
  75. exclude category from get_posts?
  76. How To Modify The Loop in archives.php To Have 11 Posts Per Page and CSS Styling
  77. How can I hide a category from Contributors in the edit/add new post screen?
  78. Order get_terms() By Custom Field
  79. WordPress Multiple Category Search
  80. Should category.php and The Loop be used if the query needs to be customizable?
  81. How do the ‘tag’ and ‘category’ (default) taxonomies do ‘save_post’ action?
  82. How to Change the Categories Order in the Admin Dashboard?
  83. Control term order on a per-post basis
  84. How to remove categories filter from wordpress admin?
  85. get all tags from category
  86. Could not insert term into the database
  87. How can I add the featured image functionality to a custom taxonomy?
  88. Activate Gutenberg in category-descriptions
  89. Filter by post category in Media Library
  90. Filtering categories in the permalink structure
  91. Share one taxonomy across multiple blogs in 3.0 [duplicate]
  92. 404 Error On Category and Tags Pages
  93. How to show subcategories in categories else show posts
  94. Allow duplicate permalink slugs for posts in different categories
  95. Exclude the category from the WordPress loop
  96. get_categories hierarchical order like wp_list_categories – with name, slug & link to edit cat
  97. How to make child categories recognize parent’s template displays
  98. Force WordPress to Show Pages Instead of Category
  99. Completely disable categories
  100. How do I get the category URL from get_the_category?
Categories categories Tags categories, post-meta
Understanding the query string after .htaccess rewrite
All Posts admin screen – show time underneath the ‘Date’?

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress