I wanted to make two uri to point same post in WordPress but without redirect,
mysite.co.uk/awesome-post
mysite.co.uk/?p=12
I want those two uri to be pointed to same post but when you reach the page uri shouldn’t change.
I wanted to make two uri to point same post in WordPress but without redirect,
mysite.co.uk/awesome-post
mysite.co.uk/?p=12
I want those two uri to be pointed to same post but when you reach the page uri shouldn’t change.
Comments are closed.
The only solution that i know is duplicate your post and get second link from it and hide the duplicate from loop and if you wish back end.
for that you have to use save_post action and plugin/theme activation hook for duplicate posts that have already published (this can be init hook but with caution you need to do this only one time).
first you have to loop through all posts and make duplicate