Duplicates don’t just come from Pages and Posts, WordPress also defines Images and Files from the Media Library as “Posts”. This means if you have a file / image in the Media Library with the same name as a page, it will assign the next duplicate a -2
( from the wp_unique_post_slug()
function ) so there’s no URL conflicts.
TL;DR – Duplicate? Search for Pages, Posts, and Images.
Related Posts:
- Removing hierarchical pages in the permalink
- How to Remove Slug From Database?
- Get closest page ID from URL
- Get the url of a page template without using the page slug and ID
- Remove -2 from URL; no duplicate pages, no images, no pages in trash
- Host frontpage via example.com and everything else via example.com/blog
- Edit permalink for certain pages
- cannot link a external url, present page url acting as parent url
- How do I structure my permalinks in WordPress?
- Nested permalink without dummy parent page
- Is it possible to get a page link from its slug?
- remove “index.php” from permalinks
- Get default permalink structure from pretty URL’s
- Creating custom permalink structure for languages
- How can I reverse engineer a Permalink to Find the Page?
- Getting the Site URL Including the Front Base
- How to use relative links on my pages?
- WordPress Permalink changes to question mark (?) in URL
- Can WordPress realistically handle a site with 500 ‘pages’?
- Passing variables through permalink structure
- URL Rewrite + Page + Custom Post Type = Unusual Redirect
- WordPress on a subdirectory of Laravel – WordPress pretty permalinks inner page shows laravel
- How to get url of a post from admin panel
- How to get a page url by a page id?
- Remove subfolders from URL
- flexible rewrite ‘ramble’ URLs with WordPress
- How to get the post id from a permalink?
- Relative or Absolute Paths for Flash Video Player Files
- Why I can’t change the permalink of this page?
- Make attachment pages require a base url
- How to Remove -14 from WordPress URL (Permalink)
- display URL or permalink instead of page title in dashboard
- Change permalink rule if category is called “uncategorized”
- Can two products with the same name but different category produce unique URLs?
- Page Attachment Permalink Structure based on Menu Order?
- Get canonical link
- CSS not loaded when omitting www. part of URL
- How can I add a page’s ID to its permalink using WP_Rewrite?
- Setting up two separate blogs while using WordPress as a CMS
- Permalinks for pages
- Get page by path – honoring permalink settings (urls w/slashes)
- Change blog segment of URL
- How to stop WordPress from removing & from URL?
- Pages not using permalink
- Non latin post slug truncate
- How to bulk edit image url in featured image and product description?
- Is there a link parameter that will show me all my published pages?
- Add prefix to page URL based on the page template
- WordPress keeps giving me the wrong permalink
- Relative v.s. absolute URLs: which ones should I use for cross-domain portability?
- Passing the JQuery string to Worldpress URL
- Issue On Displaying Pages with Post Name Permalink
- Two URLs of one post is available
- Redirect From Url To Url
- Bulk append URL (add word to slug)
- How are WordPress Page URLs affected by permalink settings?
- How to use page jumps to top of banner and page title?
- WordPress Page Not Found if Permalink Settings is Postname
- Why does enabling Permalinks make pages not found?
- Access posts while mod_rewrite is broken
- Page content doesn’t display when published but does when previewed as draft?
- Update page breaks permalinks
- WP as a CMS menu
- Subdomains pointing to a permalink URL
- How can I see a list of all pages my WordPress site has generated?
- Remove international characters from slug – Almost done – Bit help
- Non Latin page permalink problem
- replicate url permalink after migrating to wordpress
- Can I change the URL structure for a CPT only?
- How to redirect old permalinks from https://exmaple.com/category/post_id to https://exmaple.com/category/post_id.html
- Make a post inaccessible without a unique ID in the URL
- Add prefix to url, but products not showing in page SHOP
- Multiple Taxonomy Items for Separate URLs
- URL gives 404 error of my subfolder site when i change permalink
- How to construct a dynamic rewrite rule for child pages that passes more than one query var
- Using a template file for a specific custom URL
- Custom Permalink (with category) for Pages
- Custom Taxonomy rewrite rule causes 404 error on page or single post depending on if it’s set to “True” or “False”
- Post links broken after migration
- Can I link to content dynamically from a page to a new page?
- Added a prefix in URL permalink structure but the old structure still working!
- rebuilding/ rewriting a url to make it SEO friendly
- Category URL to use same string as Post URL Permalink
- Page returns 404 for specific permalink
- add bar in paging in the URL
- WordPress Page URL
- Change all pages permalinks instead of hierarchical to have id of the page
- Difference and usage of uri (e.g. get_directory_uri) and absolute path (e.g. get_directory)
- Imported posts using wrong domain name
- Development before domain name chosen
- How to display post permalinks instead of pages?
- Using a taxonomy value as part of a post URL
- Why is there a # and other characters in URL for WordPress site?
- Category pagination first link works, remaining don’t
- How to avoid duplicate Url for the home page
- Are custom page templates being used to get this permalink structure
- Why doesn’t my page know it’s a page (won’t return true for is_page())?
- Include language variable in url
- Removing parent page in URL for one page
- Remove parent product category slug from product_cat url woocommerce