Opened 7 weeks ago
Closed 3 weeks ago
#62668 closed defect (bug) (duplicate)
Permalink Conflict Between Posts and Pages with Identical Titles in WordPress
Reported by: | akshat2802 | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Permalinks | Keywords: | has-testing-info |
Focuses: | Cc: |
Description
Permalink setting: Post Name
On publishing a page and post with the same title there is an override with permalink. And the latter one created renders on clicking 'view'.
For Example:
We create a post having the title 'Sample one'
Then we create a page having the title 'Sample one'
Then the permalink for both will be the same 'https://yoursite.com/sample-one'
And it will render content of Sample one Page every time.
Attachments (1)
Change History (4)
#3
@
3 weeks ago
- Resolution set to duplicate
- Status changed from new to closed
Duplicate of #13459.
Hi @akshat2802
This issue occurs because both posts and pages can share the same slug (permalink). However, WordPress uses a priority system to determine which content to display when accessing a URL with a common slug.
By default, WordPress prioritizes pages over posts. So, when you create a page with the same title (and therefore the same permalink) as a post, the page's content will be shown because it takes precedence over the post.
Reproduction Report
Description
This report validates whether the issue can be reproduced.
Environment
Actual Results
Additional Notes