DPS – Remove commas from category output

/**
 * Remove commas from category output 
 *
 */
function be_dps_remove_commas_from_category_output( $output ) {
  return str_replace( ',', '', $output );
}
add_filter( 'display_posts_shortcode_category_display', 'be_dps_remove_commas_from_category_output' );

See: https://wordpress.org/support/topic/remove-comma-from-post-category/

Bill Erickson

Bill Erickson is the co-founder and lead developer at CultivateWP, a WordPress agency focusing on high performance sites for web publishers.

About Me
Ready to upgrade your website?

I build custom WordPress websites that look great and are easy to manage.

Let's Talk