WordPress.org

Ready to get started?Download WordPress

Forums

Changing permalinks to allways point to another page (6 posts)

  1. jcprovideo
    Member
    Posted 5 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.

  2. iridiax
    Member
    Posted 5 years ago #

    Why not just delete these posts and then 301 redirect their URLs (in .htaccess) to the parent page URL.

  3. jcprovideo
    Member
    Posted 5 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!

  4. jcprovideo
    Member
    Posted 5 years ago #

    Could this be done in the in the database? Basically change the URL?

  5. jcprovideo
    Member
    Posted 5 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

  6. jcprovideo
    Member
    Posted 5 years ago #

    Anyone?

Topic Closed

This topic has been closed to new replies.

About this Topic