Custom Taxonomy and Rewrite URL

Isn’t what you are trying to achieve the point of the rewrite slug? e.g. if you have a news category as press and another as event then simply changing register_taxonomy(‘news_category’, ‘stfp_news’, array( ‘hierarchical’ => true, ‘show_admin_column’ => true, ‘label’ => __(‘Categories’), ‘show_ui’ => true, ‘query_var’ => false, ‘rewrite’ => array( ‘slug’ => ‘about/news/category’), ‘singular_label’ => … Read more

Post loop for all taxonomy terms

You can get all the terms in a custom taxonomy using the following code: $terms = get_terms( ‘development-category’ ); if ( ! empty( $terms ) && ! is_wp_error( $terms ) ){ foreach ( $terms as $term ) { $loop = new WP_Query( array( ‘development-category’ => $term->slug, ‘post_type’ => ‘developments’ ) ); ?> …. } }

Permalinks: custom post type -> custom taxonomy -> post

First, register your taxonomy and set the slug argument of rewrite to shows: register_taxonomy( ‘show_category’, ‘show’, array( ‘rewrite’ => array( ‘slug’ => ‘shows’, ‘with_front’ => false ), // your other args… ) ); Next, register your post type and set the slug to shows/%show_category%, and set has_archive argument to shows: register_post_type( ‘show’, array( ‘rewrite’ => … Read more