• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2785

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Try Premium
  • Log in

Exclude Specific Category Links From Post Meta In Genesis Entry Footer

This code once added to your child themes functions file enables you to remove one or more categories from the post_categories shortcode output in the entry footer on single posts and archive pages.

All you need to do is add a comma separated list of category ID’s to the code.

Download Folder

Only Show 1st Category

You can then use this code snippet to show the 1st category only

add_filter('the_category_list', 'only_show_first_category');
function only_show_first_category( $cats ) {
return [$cats[0]];
}

Related Code Snippets

  • Exclude Child Category Links From Entry Meta

Entry Meta Taxonomy Terms

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags
 

Loading Comments...
 

You must be logged in to post a comment.