Feature request
Would it be possible to extend this plugin to allow for slugs such as https://example.com/2020? Currently this appears not to work. If I try to create a page named 2020 it’s renamed to 2020-1 or 2020-2.
WordPress used to be a blogging platform where reserving such URLs for date archive purposes made sense. But today WordPress is used more and more as a general purpose CMS and it would be nice to be able to disable date archive functionality to free up these slugs.
Unfortunately I’ve already printed material with such year-based URLs before realizing WordPress would hinder me creating these pages. I guess I can work around the issue (it’s too late to reprint) by using rewrite rules but it really bothers me that the final URL won’t be as clean.
]]>Hoping to create a post with a slug like “6686” or “8888” but even with the current version of this plugin (v3.0.0) my slugs still get appended with “-2” so we end up with posts slugs of “6686-2” and “8888-2”.
Any chance we might see this plugin worked on / updated in the near future?
Thanks, immensely!
Eric Harding
B&E Services
[email protected]
I made changes to the “Allow Numeric Slugs” plugin to remove the -2 from our CPT slug, but now if the CPT is a child it gets redirected to the parent post.
Here are all live links and code:
This is a parent page/post within the CPT (which works fine)
https://chrsdev.com/testurls/we-buy-houses/california/
This is a child page/post of the above parent page, but it brings up the content of the parent page. (which is NOT correct)
https://chrsdev.com/testurls/we-buy-houses/california/818/
If I don’t assign a parent page to “818”, and just have it be a top level page, then it works fine, but when I assign it as a child of the parent page “california” the content of the parent page gets displayed.
Here’s the code for registering the CPT
https://codepad.org/Wm5UwkND
Here’s the code for the plugin (originally only for post type “page”, I changed it to work with our CPT ‘area’)
https://codepad.org/Z0hZyFKl
Hi!
It’s not working for woocommerce. I have /catalog/%product_cat%/ for product permalinks. Do you think you can fix it?
Thanks
]]>I installed this plugin, which seems like exactly what we need to accomplish what a client wants (urls like /2015). It lets us change the permalink on the editing page, but when we go to the link we get a 404. Thoughts?
]]>Before installing, permalinks were set to /%category%/%postname%/ and viewing a post works ok. After activating the plugin viewing a post now gives 404 error. After deactivation and deletion, viewing a post works ok again.
The plugin did allow me to assign a numeric slug to a subpage. After deleting the plugin, the subpage retained its numeric slug.
]]>