This is about a year over due.
I have had a similar thing happen on my new word press install.
Creating pages dynamically and getting incremental numbers on the slug names.
During this process I realised that the original slug would access the last one.
ie. ../../dynammic-page would access ../../dynamic-page-4
The solution was in the trash folder! WordPress maintains these old files. A new page of the same name and slug name will be assigned a slug with an increment.
I permanently deleted the trashed versions of the page and the newly created dynamic page was increment free. Hazzaar!
Hope that helps someone.
xK
Related Posts:
- How does WordPress generate URL slugs?
- Add menu and submenu in admin with a URL instead of slug?
- Get taxonomy slug from url
- Best way of removing emoji support from url / slug only
- Allow UTF-8 characters in the user slug part of URL
- Why ids in urls don’t work but slugs do?
- Easiest way to simulate WordPress’s URL resolution to retrieve post ID, etc?
- pass user id in slug and get user information
- How do I link to a blog not set as the homepage?
- Allow Chinese character on post URL slug
- How to edit URL Slug?
- How can I change a media attachment URL/slug, so that I can use that slug for a page?
- Can anybody provide me with a function to generate slugs?
- Site transferred to new server produces 404s
- Unicode characters are saved in a funny way in the DB
- Thousands of unwanted URLs/pages with “0” in slug created
- Too many redirects (ERR_TOO_MANY_REDIRECTS) only on one page
- How to remove % character from url
- Can non-latin characters appear in slugs?
- Allow duplicate slugs for pages and posts
- Avoiding the -2 in slugs
- mysterious issue with stop words in urls not working – how can I restore multiple url access?
- How to create URL for Pages/Posts
- Modify WordPress to not replace + (plus) characters from URLs?
- Difference between esc_url() and esc_url_raw()
- Remove All Query Arg
- Run WordPress frontend and backend in different domains
- How to set global variable in functions.php
- Adding a hook to ‘parse_request’ so that siteurl/pagename/xyz ignores “xyz”
- How to have numeric URLs in Posts and Pages
- Why WordPress automatically removes http from the url of my website’s sub domain?
- WordPress Move to SSL How to Update Media Assets to HTTPS?
- Moving wp-content outside of web root?
- Generate one time URL
- Adding target and _blank as it’s value to the allowedtags
- permalink for category pages and posts
- Make attachment pages require a base url
- Get url from file uploaded in Media Library
- taxonomy/category term in URL slug irrelevant for post?
- WordPress converting ../url to http://../url
- home_url(); showing current page instead of site address
- Components used in Themes and Plugins: How to get file URL?
- Can URL remain the same if migrating from Drupal?
- How to add domain security certification, in WordPress website?
- Imported thumbnails have incorrect URL
- Is it necessary to check for `content-type` in headers?
- Non latin post slug truncate
- Problem with change url for all subpages (.htaccess)
- How to handle this URL Structure. Keep getting “page not found”
- Custom url in wordpress
- WordPress get parameter ‘unapproved’ and ‘moderation-hash’
- URL issue after migrating to dev site
- Misentered the site address url. How to recover? [closed]
- Renamed my website (URL) – how do I rename all within-page links to the old URL?
- How to call for bloginfo inside function in functions.php?
- How to get CGI variables?
- What is the best way to figure out which template file that a “pretty permalink” is using?
- WordPress Subcategory Creates 2 urls for same page (serious issue)
- Can’t change the wordpress site url
- Rewrite Most WordPress URLs
- Relative URLs within site
- Using WordPress for a site’s static marketing pages and blog at different URLs
- What is the best way to revert to www version of domain name?
- Need to check if user is on a particular page
- Hook for feed creation?
- How to set path to the image instead of alt in media.php?
- Go back to my home page
- Changing url of author page
- How to get previous and Next Post Url in the_post_navigation
- A different permalink structure for different categories
- WordPress is adding “category” word before my actual category name in url (and this is unsolicited)
- Encode URL for WhatsApp “click to chat” without loosing accented characters
- append currency to URL
- Create 600 links to separate files on google drive
- Locked myself out of WordPress because I changed my URL and computer shut down
- Cant access my wordpress.org locally
- I changed the URL [closed]
- WP site homepage displays url link at beginning of each featured post
- Unable to login after changing WordPress site url
- Why is my WordPress URL shortened
- Private Messages between users
- Post as frontpage – avoid duplicate content
- International characters in slugs to redirect to
- Navigation and Permalink not getting correctly
- How to get the correct URL on my wordpress site?
- How to redirect WP post with a specific word in the URL
- Duplicate content with the same URL, google authorship
- Display Plugin information on specific url
- Making a site URL
- Avoid too long words in a post title, post content or comment but only if its not a url
- Change URL to filter posts
- Is this the correct way to add post-slug input field?
- Is There a Way to Schedule URL to Content Updates?
- I changed my url and cant access my site, Help?
- Accidentally changed the url
- Dynamic Buttons According to URL parameter
- WordPress Address and Site Address differ
- /?clearcache=1670318470 showing up in URL after client logs in
- Is it possible to use a post name in a custom post slug?
- My Website’s Main URL redirects me to an Archive Page