• Hello, I cannot set number after ‘page’ as a slug. Is this default setting or bug?

    I’m trying to post articles which slug is like ‘page1’ as static page.
    But it is converted to ‘page1-2’ after saving.

    I do not have any page which slug is ‘page’ and number on WP-Post database including trash and draft. And I also have tried on no plugin environment, but same incident happen.

    Does someone know about this? please let me know.

Viewing 2 replies - 1 through 2 (of 2 total)
  • It might have saved an auto-draft if your post. Think of it as a post that is neither published, scheduled, or draft. Try setting your post revisions to zero in your wp-config.php.

    https://codex.www.ads-software.com/Editing_wp-config.php#Disable_Post_Revisions

    define( 'WP_POST_REVISIONS', false );

    I had the same issue and that was what was causing it. I also used the plugin WP-Optimize to clear all transients and post revisions to utilize the slug as I intended. https://www.ads-software.com/plugins/wp-optimize/

    As a tip, if you’re working on a post, set your title and slug and save it. It will then be a draft and not likely to have issues later.

    • This reply was modified 6 years, 9 months ago by Joe Manna.
    Thread Starter Yu Onoda

    (@yuonoda)

    Thank you for your advise, but it doesn’t work.

    I have disabled WP_POST_REVISIONS and cleaned up my database by wp-optimize, but the slug is renamed.

    I also tried on completely new environment, new server and new database, but I cannot save slug as I intended.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cannot set number after ‘page’ as a slug’ is closed to new replies.