Some things that come to mind to try:
Does this happen for all post types or just post
or just custom post types? Are they hierarchical posts?
You could read through the wp_unique_post_slug function (https://developer.wordpress.org/reference/functions/wp_unique_post_slug/) to see what might be triggering the suffix.
Take a look through your database to see if there is any lingering post_meta that might be causing the duplicates (meta key = _wp_desired_post_slug).
See if there are any hooks that alter wp_unique_post_slug
.
If you have a post with the slug 201555555-2 and you add a new post with the slug 201555555 does it get a -3? Is the -2 only added to number -only post titles or every post title even with only letters?
Related Posts:
- Changing permalinks gives me 404 errors on nginx
- Strange permalink issue: can’t rename /company-2/ to /company/
- How to get permalink and title from post ID?
- Using $_GET variables in the URL?
- Removing leading zeros from custom permalink structure
- Move WordPress to subdirectory, keep ALL URLs
- WordPress permalinks Yahoo hosting(no .htaccess allowed)
- How do I turn off 301 redirecting posts (not canonical)?
- How can I include a query string with get_permalink
- Without index.php in permalinks I get 404 across site
- Permalink: postname EXCEPT for blog
- %tag% in permalink not working
- How to assign a Permalink to a Function
- Rewrite rule never matching
- How to get blog id from permalink?
- Custom url for a single page
- Rewrite-Rules not working on a vhost, everything goes to index.php
- Date archive permalink modification
- Using ‘Primary Category’ in URL
- Changes to permalink structure results in 404 error for all pages other than home
- Filter string like a slug
- I need a custom permalink for my website
- 404 with post name permalinks
- Woocommerce Product Attribute Permalink doesn’t work?
- How to link to “most recent” document in the Media Library?
- Permalinks not working
- Problem with wordpress links on a live site
- Why wordpress multisite root site showing blog prefix by force?
- Permalink change redirects by WordPress [duplicate]
- page nested 3 levels deep shows 404
- Removing /author/ slug from URL gives 404
- Can I create permalinks like this: /%post_type%/%postname%/
- Force wordpress to display page with same url structure as categories
- Why the “Permalink” option is not showing in the “Settings”? [closed]
- is there a way to add the post URL to the results of fselect facet in Facetwp plugin?
- NGINX serve WordPress from sub-path fails with 404, how to fix?
- Redirect /%year%/%monthnum%/%day%/%postname% [closed]
- How to get the full URL of the current page and change domain of it?
- Custom permalink structure: /%custom-taxonomy%/%post-name%/ (without CPT slug)
- How to get functions.php work with postname permalink?
- How can I get this custom post type permalink structure? %custom_post_type%-%taxonomy%-%term-postname%
- get_permalink returning site home url instead of the url of slug being passed
- Host frontpage via example.com and everything else via example.com/blog
- WordPress can generate numeric permalinks, which then 404
- Dynamic Custom Permalinks
- 404 error using Meta for Permalink rewrite
- WordPress suddenly changed all links to example.com/example.com/
- How to handle paging/pagination with a custom permalink?
- Environment independent way to link to certain pages on frontend
- Custom URL rewrites for templates
- Relative links in Gutenberg
- How to change custom post type, blog post and page permalink by template?
- Permalink with anchor on home page to single page
- Add category into post permalink
- Ignore postname in permalink
- How do I keep multiple domain for my wordpress site
- Custom permalink structure with %postname% in front of domain name
- how to set up wp in folder within static website?
- Create custom links for excerpts with php dynamically
- placing the media uploads in a subdirectory
- Permalink Structure not updating .htaccess
- Multiple sites with pretty permalinks with nginx
- mod-rewrite rules grabs “broken permalinks”, too
- How do I rewrite attachment urls when permalink structure contains %category%?
- Creating an alternate path for a page
- Permalinks causing wp-json to 405
- Parent/Child Categories Permalinks
- How to change URL from /%postname%/ to custom-name/%category%/%year%/%monthnum%/%day%/%postname%/
- How to prevent wordpress from lowering Capitalized letters
- why wordpress keeps redirecting to old page after deleting it?
- WordPress Multisite ABSPATH and get_home_path() to check for htaccess or web.config file
- Disable -2 Permalink Addition
- Permalink in relation with the files
- Every sub page shows Error 404, i have check permalink but still same issues
- Permalink structure /page/page/cpt-post gives 404 with pagination
- Changing permalink structure for Posts
- Allowing slash in slug/permalinks
- Author permalink
- Multiple Permalink Patterns for one page
- When is a good time to reset permalinks?
- WordPress permalinks first word title
- I can get the permalink or the excerpt to work correctly, but not both
- WordPress permalink issue on AWS
- Permalink for Author’s Posts in a Category
- Search and replace post URL’s on page output?
- Permalink Rewrite with Archive – Archive gets 404
- WP Admin Bar not showing with custom permalink structure for pages
- WordPress Pagination Not Working After Transfer from Localhost
- Accidentally changed the permalink structure
- Why doesn’t WP update my .htaccess file?
- Permalink for pages
- How is a URL getting mapped to a page template
- customize urls displayed by previous_post_link and next_post_link
- What is the issue with our links? It creates a loop
- Routing ‘fake’ sub sub posts
- Page and post auto links
- how to make follow?
- Permalinks Won’t Work
- Add additional URL variations for a Post
- How to use ‘blogs.dir’ as media upload instead of ‘uploads’ directory in WordPress multisite setup