Automatically Give All Custom Post Types a Pre-Set Category [duplicate]

You can force default terms for a post by using the save_post hook. Here’s an example from the Developer resources originallly by the user Aurovrata Venet. add_action( ‘save_post’, ‘set_post_default_category’, 10,3 ); function set_post_default_category( $post_id, $post, $update ) { // Only want to set if this is a new post! if ( $update ){ return; } … Read more

How to show the a custom taxonomy term on single post metadata

You might be able to use the the_author_posts_link filter to do this: add_filter( ‘the_author_posts_link’, functoin ($link) { global $post_id; // get “source” tax terms $sources = get_the_terms( $post_id, ‘source’ ); // build html $html=””; foreach ($sources as $source) { $html += ‘<a href=”‘. get_term_link($source) .'”>’. $source->name .'</a>’; } // pre-pend html to author link $link … Read more