bobbingwide / dupes

Cater for duplicate slugs in WordPress content
GNU General Public License v2.0
0 stars 0 forks source link

Scenarios for custom permalink structure `/%postname%-%post_id%/` #4

Open bobbingwide opened 2 years ago

bobbingwide commented 2 years ago

I manually demonstrated that if you used a custom permalink structure of /%postname%-%post_id%/ then a page with the title which matches the post's name and ID will trump the post.

eg. page with title Trouble with URLs 2507 ( id 3583) https://s.b/cwiccer/trouble-with-urls-2507/ trumps the post with title Trouble with URLs and post ID 2507.

Does the same problem occur when the custom permalink structure is /%postname%/%post_id%/?

Answer: The page with the duplicate post name (which is post ID 2512) trumps the post that it's a duplicate of even though it's accessed with the post_id as part of the URL https://s.b/cwiccer/trouble-with-urls/2507/