[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:
- Get terms by taxonomy AND post_type
- Rewriting a custom-post-type permalink with taxonomy term?
- How can I rewrite URLs to pass taxonomy and post type values to the query?
- wp_set_object_terms() is not replacing term, but creating a new one
- Custom post type taxonomies URL rewrite
- Custom Taxonomies Terms as Post Title for Custom Post Types upon Publishing
- Create permalink structure for one taxonomy archive per custom post type
- Retrieve single term slug
- Custom permalinks
- How can I add programmatically custom taxonomy terms to a custom type post when saving posts?
- post count is wrong when using same taxonomy for 2 different CPT
- Issues when rewrite rules collide?
- Glossary with Custom Post Type
- Custom Permalinks for Custom Post Types and Taxonomies
- Retrieve a specific field from taxonomy term through advanced custom fields [closed]
- Separate Custom Post Type Taxonomy by Comma
- Custom post type category, taxonomy and URL rewrite problem
- Get child terms of current term of the current post
- Custom Post Type/ Taxonomy URL rewrite
- Bulk 301 redirect for custom post type
- Custom Permalink Tag breaks Pagination
- how to get archive urls with same origin for custom types and terms?
- Output the content of a term organised by each of the CPT?
- multiple url slug for single custom post type
- Pretty URLs for Custom Post Type & Custom Taxonomy with Duplicate Slugs on WPML
- Custom Post Type and Custom Taxonomy Permalinks
- How to check the terms in single custom post type template
- Change Permalink Structure for Tag.php template
- Show listings from Impress Listing plugin in random order using taxonomy and terms
- How do I display tags for a custom post type single page?
- using $wpdb to get custom post type with term
- Show posts from two or more custom taxonomy terms
- Allow user to set custom order to a list of custom taxonomies?
- wp_list_categories() – current-cat class also inside posts?
- Custom Post Types, URL rewrite on multiple CPTs
- Which post does a taxonomy term belongs to?
- Adding custom post category slug in permalink causes 404 error for pages and posts
- Issue on Creating Custom Tax Term Dynamically From Another CPT Meta-box On Publish
- How can I make the slug of the taxonomy also the slug of the custom post
- WordPress loop: Show only a Custom Post Type Taxononmy TERM
- How to rewrite url for any specific taxonomy?
- Custom post URL 404 error
- Custom taxonomy rewrite with query var returns %2F in URL
- Remove slug in URL custom post type
- URL rewriting for CTP assigned entity
- How do I require the specification of term in a custom post type and custom taxonomy?
- Custom taxonomy returns 404
- How to get custom posts sub category link
- CPT’s with landing page instead of archive – Url Rewrite?
- Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)
- Displaying custom-taxonomy-terms sorted by parent/child-hierarchy?
- Query posts with double taxonomy
- Adding predefined terms to a taxonomy
- Best way to specify “article type” in URL
- Custom query – get_the_terms not work
- How to Display Posts From Category Within a Custom Taxonomy?
- post_type_link Filter – Too Few Arguments
- get_terms() returns Trying to get property of non-object error for custom taxonomy
- how to count the current posts terms
- How to rewrite the post slug of a custom post type post
- Custom Taxonomy Terms in Menu lead to which page?
- Archive page for custom post type and custom taxonomy
- Add custom post type taxonomy tag to article class
- Custom Taxonomy dont save in a frontend form for post a custom post
- Add filter to Admin list for all custom post types by their custom taxonomies
- Add the custom post term to the custom post title
- Custom taxonomy not saving correctly
- custom post archive URL is wrong
- Custom taxonomy and post type rewrite rules
- Custom Post Type and Taxonomy Rewrite Error
- Custom taxonomy terms as children of multiple custom post types
- Custom Post Type & Taxonomies – Rewrite
- Return multiples taxonomies with wp_get_object_terms
- Custom taxonomy terms hierarchical navigation
- Excluded Custom Taxonomy Term Posts Displaying in loop
- Display CPT taxonomies as an archive page
- Change CPT permalink to use the category
- Custom URL for Custom Post Type & Custom Taxonomy Term
- 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
- Flush rewrite rules when new cpt is registred
- Filter Term By Parent Term – Custom Post Type
- Display all Custom taxonomy terms and their relevant custom posts
- CPT url rewriting : regular posts return 404 error
- Best way to group posts based on custom post type terms
- redirect old post type url to new structure url
- Get list of CPT posts in *current* post’s taxonomy term
- One custom post type with two different url structure base on taxonomy term
- 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
- taxonomy terms array not working
- get_the_term_list() wanting to loop through the returned values
- Rewrite Rule for custom post type link with or without taxonomy terms
- 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