jcprovideo
Member
Posted 3 years ago #
I would like to change certain posts links to always point to a specific page.
Basically I have some posts that don't show up on my blog page, however, they are queried and show up on the about page. When you do a search these posts are displayed. This is fine, however their links go to the individual post. I would prefer them to just go to the parent about page. Make sense?
When I edit the permalink on the post, I am only able to change the post name, not point it to another page.
Why not just delete these posts and then 301 redirect their URLs (in .htaccess) to the parent page URL.
jcprovideo
Member
Posted 3 years ago #
Cool I didn't think of that. Ok but, is there not a way to do this through PHP? Perhaps through a custom search results page? Thanks for your help!
jcprovideo
Member
Posted 3 years ago #
Could this be done in the in the database? Basically change the URL?
jcprovideo
Member
Posted 3 years ago #
Or is there a way to basically to write some PHP code on the search page:
if cat=8
echo url = http://www.example.com/about
jcprovideo
Member
Posted 3 years ago #