[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?
- WordPress Rewrite Rules for Custom Post Type and Taxonomy
- Display current taxonomy term when inside custom post type
- Get term slug of current post
- Custom Post Type and Taxonomy URL rewrite
- How do I list custom taxonomy terms without the links?
- Get terms that contain posts that in turn belong to other terms?
- wp_insert_term doesn’t work with custom post type’s taxonomy
- Archive page with multiple taxonomies rewrite
- wp_get_object_terms(): count relative to passed IDs?
- Taxonomy archives based on Custom Post Type
- Multiple custom post types using the same taxonomy = URL frustrations
- Custom Post Type Archive Template
- Display CPT taxonomies as an archive page
- Maintaining strict one-to-one association between terms and custom posts
- Including two taxonomies in a permalink structure
- WP Rewrite Rules – Custom post type & taxonomy
- Remove base slug in CPT & CT, use CT in permalink
- How do I list terms of a custom taxonomy at i.e. domain.com/brands/
- Permalink Structure problem with cpt and custom taxonomy
- Custom Taxonomy 404
- Get list of terms of current taxonomy archive for another taxonomy
- Get all taxonomies for all post types
- Dynamically create/remove terms in taxonomy when custom post type is published/trashed
- Custom Permalink for Taxonimie and Custom Post Type
- How to filter the taxonomy terms based on another taxonomy term
- How to output wordpress custom tags separated by comma?
- Permalink Structure CPT With Custom Taxonomy Fails
- Conditionally custom post type url rewrite
- get_the_terms return only last term
- Does WordPress limit the length of slug names for Post Meta or Terms?
- get_post_meta returns empty array for terms
- Custom Post Type Archive Page Filtering
- Remove url rewrites for registered taxonomies
- Get Taxonomy Term Title by it’s URL
- Display post as term id
- How to create custom url structure based on custom post type rewrite slug, taxonomy and category slug?
- Post count by month of taxonmy term
- Customize Custom Post Type URL
- Custom Permalinks with CPT and Hierarchical Taxonomies
- Display Custom Taxonomy Alphabetically
- Custom Permalink Structure for Custom Post Type, Custom Taxonomy, Under a page
- Get terms that contain posts that in turn belong to other terms?
- Custom while loop for hierarchical display of a taxonomy
- Custom permalink with child taxonomy terms
- Query posts with double taxonomy
- Adding predefined terms to a taxonomy
- Custom query – get_the_terms not work
- Shared terms between taxonomies
- How to get dropdown instance value in WordPress custom Widget
- custom hierarchical taxonomy and custom post type list contains surplus posts
- get_terms() returns Trying to get property of non-object error for custom taxonomy
- Grab all Custom Posts by multiple taxonomies and terms
- Taxonomy rewrite pagination 404
- Add filter to Admin list for all custom post types by their custom taxonomies
- Add the custom post term to the custom post title
- Retrieve Custom Taxonomies with Description and Slug
- How to list posts by term (custom taxonomy)
- custom post archive URL is wrong
- Taxonomy terms with the same name are updated between separate custom post types
- Remove cpt slug from url and use custom taxonomy instead breaks all other cpt
- Add a class to a div if custom post type has specific terms?
- Custom Permalink For Custom Post Type – Working Fine But Broken For Pagination
- Custom taxonomy terms hierarchical navigation
- How to display custom taxonomy term specific post?
- How to properly set the rewrite rules for this case?
- How to list posts by terms
- How to order taxonomy terms by most recent post?
- get_queried_object not work in taxonomy page
- How to fix 404 on post after prepending Custom Post Type url with Custom Taxonomy Term slug
- Redirect Custom Post Type from Child Taxonomies
- Custom post type structure + permalink structure
- Pages of my taxonomy terms are showing all posts
- How to show terms used only for particular custom post type. Filter creation perpose
- How to get all posts related to a taxonomy?
- order taxonomy alphabetical
- Filter Term By Parent Term – Custom Post Type
- Display all Custom taxonomy terms and their relevant custom posts
- WordPress get all post with like in terms [duplicate]
- Custom Post Type rewrite url to /category/pagetitle [duplicate]
- Decrement term in for each
- Force WordPress to only match URL in category
- Best way to group posts based on custom post type terms
- Custom Post Status & Taxonomies
- redirect old post type url to new structure url
- Why won’t this rewrite rule work?
- How to retrieve the permalink for a specific (custom) term?
- Get term_id for each instance of custom taxonomy
- Customize category URL
- List a custom taxonomy’s terms, with links, on the taxonomy page
- install.php Custom Taxonomy Term not being added to custom post
- Custom Post Type Base URL
- Custom Taxonomy in Permalink from post type
- 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
- How can i change url structure of cpt like this?
- 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 work with URLs where sometimes a post or a subcategory is in the same part of the URL structure
- How to list custom taxonomy terms without the hyperlinks?