mardi 30 décembre 2014

Using two permalinks for one post


Using two permalinks for one post


I am developing a wordpress website for a client, the client want to show 2 separate templaes for post details the scenario will be.


user clicks on post and our default single.php will load up, there have a play button when user click on play button then instead of post name in permalink I want to add /play/post-name and need to load second template for that.


searched on internet and found some suggestions like Maintaining two permalink structures and https://wordpress.org/support/topic/multiple-posts-in-1-permalink but these are not working and also these are trying to add at the end of the link but i need it to before post-name


any help will be appreciated.


thanks


Actually this is a game website and from posts listing page when user click on game image he will see a single page with game description and a play button when user click on play button he can then move to the actual game, so the post is same but we need seperate link for details and play pages.


thanks





Aucun commentaire:

Enregistrer un commentaire