Customize category URL

I figured this out by reading this article. It was very simple, all I had to do was: Change the $talks_cat_args[rewrite][slug] from ‘talks’ to ‘talks/category’ (which I had tried before) but missed… Make sure register_taxonomy is before register_post_type. Read the article, but it’s basically because of “how WP_Rewrite works as the process of deciphering permalinks … Read more

Custom Template Taxonomy

If I’m understanding your question correctly, you want to avoid code duplication among the three CPT archive and three taxonomy template files? If the point is primarily one of avoidance of code duplication (i.e. DRY – Don’t Repeat Yourself), I would recommend creating template part files for the loop content for each CPT: content-{cpt1}.php content-{cpt2}.php … Read more

Pass custom value to custom taxonomy

have you tried building your tag array into a variable and passing that as a parameter to set_post_terms? function add_author_taxonomy( $post_id ) { global $wpdb; if(!wp_is_post_revision($post_ID)) { $my_tags = get_post_meta($post_id, ‘user_submit_customauthor’, true); wp_set_post_terms( $post_id, $my_tags, ‘author’, true ); } } add_action(‘publish_page’, ‘add_author_taxonomy’); add_action(‘publish_post’, ‘add_author_taxonomy’) ;