Display Custom Post Type in Custom Taxonomy URL

You can use WordPress’ ability to accept custom rewrite rules to get this done. You can add the following to your functions file, or create a plugin (recommended). function url_rewrites_wpanswers() { add_rewrite_rule(‘/custom-post-type-slug/([^/]*)?$’,’index.php?post_type=custom-post-type-name&custom-taxonomy-name=$matches[1]’, ‘top’); //lets you use /posttype/customtaxterm } add_action(‘init’,’url_rewrites_wpanswers’); You would have to add a line for each since otherwise yoursite.com/something1/something2 would end up pointing … Read more

Display Custom Taxonomy of custom post type

I am assiming you already register taxonomy which show you correct links (and generate correct rewrite rules)… but lets make a checklist. 1) Register Taxonomy and assign it to different post types done by you… 2) Modify a rewrite rules add_filter(‘locations_rewrite_rules’, ‘se_119400_locations_rewrite_rules’); function se_119400_locations_rewrite_rules(){ $rules = array(); $rules[‘location(/?(([^/]+?)(/page/?([0-9]{1,})/?)?)?)$’] = ‘index.php?locations=$matches[3]&paged=$matches[5]&post_type=any’; return $rules; } 3) Taxonomy … Read more