[taxonomy_name] should be available in permalink automatically if you register it as
register_taxonomy('kalendar', [taxonomy_name], $args );
So Try this
foreach($this->months as $month => $month_var) :
$args = array(
'labels' => array('name' => $month),
'hierarchical' => true,
'rewrite' => array( 'slug' => $month_var ),
'query_var' => true
);
register_taxonomy($month_var, 'kalendar', $args);
endforeach;
Then Save Permalink Settings to flush rewrite rules.
Related Posts:
- Mixing custom post type and taxonomy rewrite structures?
- Get terms by taxonomy AND post_type
- Rewriting a custom-post-type permalink with taxonomy term?
- Get Posts by Custom Post Type ,Taxonomy, and Term
- Get The Post Type A Taxonomy Is Attached To
- WordPress Rewrite Rules for Custom Post Type and Taxonomy
- Display current taxonomy term when inside custom post type
- Get term slug of current post
- Change the term based on the value of a $variable using wp_update_post in submitting a form
- Display CPT taxonomies as an archive page
- get_the_terms child terms for current post/custom post only
- Change CPT permalink to use the category
- How to fix 404 on post after prepending Custom Post Type url with Custom Taxonomy Term slug
- Get all posts for custom taxonomy term
- Permalinks: custom post type -> custom taxonomy -> custom sub taxonomy -> post
- Redirect Custom Post Type from Child Taxonomies
- posts_per_page is not working by term
- Pretty Permalinks with CTP and Taxonomies / Hierarchical
- Customise Permalink Structure For Custom Post Types
- Custom post type structure + permalink structure
- Dropwdown: Get taxonomy terms from posts that share preselected terms from 3 other taxonomies
- Custom Post Type / Taxonomy / Term – what template to use to avoid 404-page?
- Pages of my taxonomy terms are showing all posts
- Display title of all custom posts from same taxonomy term on a custom post template
- wordpress does not see the correct custom taxonomy hierarchy
- Custom URL for Custom Post Type & Custom Taxonomy Term
- Add active class to foundation 6 tabs while looping categories
- Saving Child Terms on front end not setting parent
- Custom taxanomy and custom post type – pagination leads to 404
- Register post type getting error 404
- How to show terms used only for particular custom post type. Filter creation perpose
- Flush rewrite rules when new cpt is registred
- Get category list & taxonomy list from different post type using post id?
- How to build overlapping custom post_type and taxonomy rewrites without conflicts?
- How to get all posts related to a taxonomy?
- Custom taxonomy- only output relevant terms
- order taxonomy alphabetical
- Filter Term By Parent Term – Custom Post Type
- Filter By Term Not Working – Custom Post Type
- Display all Custom taxonomy terms and their relevant custom posts
- WordPress get all post with like in terms [duplicate]
- Get posts of an specific term of a custom taxonomy
- I have a custom taxonomy assigned to two post types. How do I create URLs for different term archives for each post type?
- CPT url rewriting : regular posts return 404 error
- WordPress add taxonomies/terms list as a menu in archive page
- Custom Post Type rewrite url to /category/pagetitle [duplicate]
- Remove custom post type slug but keep related category taxonomy permalink
- page not found for example.com/custom-post-name
- Decrement term in for each
- Force WordPress to only match URL in category
- Best way to group posts based on custom post type terms
- Hide Custom Taxonomy title if not associated with another Custom Taxomony
- How to pass taxonomy terms to WP_Query along with $args?
- Custom Post Status & Taxonomies
- redirect old post type url to new structure url
- Get list of CPT posts in *current* post’s taxonomy term
- Fetch posts list from fist CPT taxonomy term and list under 2. CPT
- Prevent repetitive terms in get_the_term_list
- One custom post type with two different url structure base on taxonomy term
- How to List CPTs Under One Tax Term
- Why won’t this rewrite rule work?
- How to retrieve the permalink for a specific (custom) term?
- Exclude Custom Post Type from shared Custom Taxonomy
- Remove Custom Taxonomy Slug only without removing Custom post type slug in permalinks
- Get a list of categories ids
- Parent cpt/child custom post type URL permalink relationship
- Get term_id for each instance of custom taxonomy
- Customize category URL
- List a custom taxonomy’s terms, with links, on the taxonomy page
- taxonomy terms array not working
- install.php Custom Taxonomy Term not being added to custom post
- Taxonomy Query of Custom Post Displays Archive Instead of Posts
- Custom post type and custom taxonomy archive inaccessible
- Custom Post Type Base URL
- Custom Taxonomy in Permalink from post type
- get_the_term_list() wanting to loop through the returned values
- List custom taxonomy terms
- show 10 most recent custom post types excluding the one(s) from specific custom taxonomy
- How to Get The Taxonomy Term in Custom Post Type Loop Inside a Wp Query
- Display associated taxonomy child name on single CPT page
- How to manage a bookstore
- How can i change url structure of cpt like this?
- Get all terms assigned to a post from different taxonomies
- Issue On Listing Woocommerce Parent Tag List
- How to change custom post type slug without damage seo? [closed]
- Rewrite Rule for custom post type link with or without taxonomy terms
- Custom Post Type with multiple Custom Taxonomies / Hide Taxonomy Slug from URL
- Get term link of shared taxonomy between multiple post types
- Custom post type with custom taxonomies structure url not working archive of CPT
- How to use wp_set_object_terms depending on page ID?
- Rewrite rule taxonomy url with different values in one function
- Taxonomy Archive URL + Template
- How to work with URLs where sometimes a post or a subcategory is in the same part of the URL structure
- Custom templates based custom url structure in wordpress
- Display posts from Custom Post Type, group by term, arrange term groups and arrange items within groups by menu order
- Is it possible to get_terms by taxonomy AND post_type?
- How to list custom taxonomy terms without the hyperlinks?
- Rewrite taxonomy permalink appended to CPT archive url
- Is there a way to edit non-custom term attributes?
- Can’t retrieve custom post type taxonomy term to custom post type editor