Support » Plugin: Remove CPT base » False duplicates on normal pages

  • Resolved regeisle

    (@regeisle)


    I’ve got the plugin only enabled for a single custom post type, but it’s messing up slug naming on normal ‘pages’, ignoring hierarchy and finding false duplicates.

    For example, I have a top level page, site.com/about/

    Then if I try to add an About subpage somewhere, it sees it as a duplicate. So site.com/something/about gets renamed to /something/about-1/

    Any way to avoid this? If I disable the plugin, it lets me edit it back to /something/about

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

    (@kubiq)

    Actually you’re right, I will probably completely remove duplicate slug checking…
    WordPress is broken anyway, as you can create page About with slug /about and then also post About with same slug /about, but it will load page and not post…
    Ok, so in new version will be no slug check and some small fixes πŸ˜‰

    Thread Starter regeisle

    (@regeisle)

    Right on. Since that’s probably down the road some, is there something I can edit in the current plugin files to disable the duplicate check? Totally fine without it, and probably no chance of duplicates with the site we’re doing, just need that base slug gone. Trying to launch next week. Thanks!

    Plugin Author kubiq

    (@kubiq)

    sure, just delete this line of code
    add_filter( 'wp_unique_post_slug', array( $this, 'fix_slug' ), 100, 6 );

    Plugin Author kubiq

    (@kubiq)

    You can try new 5.1 version. Let me know if everything works for you πŸ˜‰

    Thread Starter regeisle

    (@regeisle)

    5.1 seems to be working perfectly, really appreciate the quick update push! Enjoy the weekend

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘False duplicates on normal pages’ is closed to new replies.