Permalink settings are stuck on https, will not update to http
Permalink settings are stuck on https, will not update to http
Permalink settings are stuck on https, will not update to http
How to change permalink structure off default posts and also CPT’s posts
How to put link on a slideshow gallery?
Child terms with improper parent in the url should redirect to 404
WooCommerce product permalink based on product’s current category
I am getting 500 error when enabling pretty permalinks
Allow child pages with the same base as the CPT slug
WordPress how to remove parent slug from category URLs
You can do that by writing a function using the ‘generate_rewrite_rules’ WordPress hook. https://developer.wordpress.org/reference/hooks/generate_rewrite_rules/ <?php function guides_cpt_generating_rule($wp_rewrite) { $rules = array(); $terms = get_terms( array( ‘taxonomy’ => ‘venue-type’, ‘hide_empty’ => false, ) ); $post_type=”guide”; foreach ($terms as $term) { $rules[‘guide/’ . $term->slug . ‘/([^/]*)$’] = ‘index.php?post_type=” . $post_type. “&guide_post_type=$matches[1]&name=$matches[1]’; } // merge with global rules … Read more
post_type_link not working for posts without terms