Permalink %postname% issue with Elementor

Support MB Custom Post Type Permalink %postname% issue with Elementor

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #44369
    DufflDuffl
    Participant

    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.

    Example:

    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 🙂

    #44374
    PeterPeter
    Moderator

    Hello Duffl,

    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.
    https://wordpress.stackexchange.com/questions/135146/resolve-a-custom-post-type-name-vs-page-permalink-conflict-same-slug
    https://wordpress.org/support/topic/custom-post-type-and-page-same-slug/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.