• Resolved fabriziobenelli

    (@fabriziobenelli)


    Hi, I have installed permalink Lite and I have edited a custom post typ with the same base URL of soma pages.

    EXAMPLE:

    pages structure is: blog.site.it/example/examplepage

    and custom post type structure is: blog.site.it/example/examplecustompost

    all function correctly but when I try to edit with elementor my pages wordpress show me error 404:

    How can I resolve it?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Maciej Bis

    (@mbis)

    Hi @fabriziobenelli,

    The problem you are experiencing is not directly caused by Permalink Manager, but your rewrite settings for custom post type items. I guess that the problem still persists even when Permalink Manager is deactivated.

    This is a very common problem and it is caused by the limitation of the WordPress inbuilt permalink system.

    As you mentioned, all the permalinks of custom post type use specific permalink format:

    blog.site.it/example/examplecustompost

    The permalink format for custom post type have higher priority than regular pages, therefore when Elementor tries to load “page” or “post” that uses the same URL format, e.g.:

    blog.site.it/example/examplepage

    WordPress cannot distinguish between “pages” and custom post type items and as results tries to load non-existing item (instead of loading the correct page).

    To fix this problem, you need to make sure that both pages and custom post types use its own unique permalink format. Just make sure that “rewrite” => “slug” property is not null/empty.

    You can still override the inbuilt permalinks using Permalink Manager, so custom permalinks of both pages and CPT use the same permalink format. The key here is simply that only the default/built-in permalink formats must be different.

    • This reply was modified 1 year, 5 months ago by Maciej Bis.
    Thread Starter fabriziobenelli

    (@fabriziobenelli)

    Hi, thank you for your response. So…also with permalink manager I can’t use the same base URL for pages and custom post types? correct?

    Plugin Author Maciej Bis

    (@mbis)

    You can, just make sure that the base URL for custom post type is unique. Then, you can overwrite the inbuilt permalinks (that should use unique format) with the custom permalinks (generated and saved by my plugin). In short, only the custom permalinks can use the same URL base, but not the original/in-built permalinks.

    Thread Starter fabriziobenelli

    (@fabriziobenelli)

    Thank you so much! Fantastic Plugin!

    Plugin Author Maciej Bis

    (@mbis)

    I am happy to help ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error 404 preview elementor’ is closed to new replies.