Support › MB Custom Post Type › Permalink %postname% issue with Elementor
Hi, when I set permalink structure to %postname% I get an issue with Elementor and custom post type.
The problem is: If the custom post type slug is the same as the Elementor page slug, Elementor will not load in backend and load incorrectly in frontend.
Elementor Post URL: test.com/blog
MB Custom Post Slug: blog
Custom post example URL: test.com/blog/somepost
This structure will not work. As soon as I rename MB Custom Post slug to "blog2", it works correctly.
However this is bad for SEO purposes. The post example URL would then be: test.com/blog2/somepost - SEO will not like that.
I tried the "Custom rewrite slug" setting in the post type. This will set the post URL to look good, but then ELementor breaks again.
Is there a workaround for that or a way I can set it correctly?
SEO guy says that the URL must be consistent or else it will break SEO results. Thank you 🙂
In this case, you will need to use a custom code to rewrite the permalink. It is an issue with the conflict slug of WordPress rather than a Meta Box issue.
You can read more on some links below. If it doesn't help, I recommend using a different CPT slug to prevent this issue.