Why I can’t change the permalink of a WP page?

May be the main reason of this issue is that the WordPress finds that this URLs already assign to any post which exists in database. so You have to check permalinks of the every pages/post or attachments are not using that permalink. It could be in publish, drafts or trash as well. or you can … Read more

Can’t remove front from permalinks for custom taxonomy category page

To get the URL like example.tld/portfolio/PORTFOLIO-CATEGORY-NAME/PORTFOLIO-NAME/ do the following. Change rewrite for the custom post type to ‘rewrite’ => array( ‘slug’ => ‘portfolio/%portfolio-categorie%’, ‘with_front’ => false ), Change rewrite for the custom taxonomy to ‘rewrite’ => array( ‘with_front’ => false ), Use post_type_link filter to replace %portfolio-categorie% with the actual taxonomy term: add_filter( ‘post_type_link’, ‘my_portfolio_permalink’, … Read more

How can i have a custom post type with more slugs for each post?

Yes you can do this with a custom rewrite. I am doing the same for a custom post type, in my case profile. So my URL = domain.com/profile/some-custom-slug. Dynamically I create /meet-me behind it, so it becomes domain.com/profile/some-custom-slug/meet-me. The real address of the contact page is domain.com/profile/some-custom-slug/?meet=true (or something else unique). function wpse343933_todo() { add_rewrite_rule( … Read more