[wp-trac] [WordPress Trac] #62668: Permalink Conflict Between Posts and Pages with Identical Titles in WordPress
WordPress Trac
noreply at wordpress.org
Thu Jan 2 06:28:30 UTC 2025
#62668: Permalink Conflict Between Posts and Pages with Identical Titles in
WordPress
------------------------------+------------------------------
Reporter: akshat2802 | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Permalinks | Version:
Severity: normal | Resolution: duplicate
Keywords: has-testing-info | Focuses:
------------------------------+------------------------------
Changes (by kadiwala):
* status: new => closed
* resolution: => duplicate
Comment:
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62668#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list