How to deal with post and page with same slug?
-
Hi,
I have a post with the title “Lorem ipsum” and it’s slug is “lorem-ipsum”.
In order to be able to make a particular layout for it, I made a specific page “Lorem ipsum” where I call and display the post. The page has the same slug: “lorem-ipsum”. I put the link to the page into the navbar and everything is fine, except that both appear on the search results page.
Is there a method to exclude page from search query, given that the page content is loaded anyway when the link is visited?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to deal with post and page with same slug?’ is closed to new replies.