WordPress.org

Support

Support » How-To and Troubleshooting » Auto redirect every single to it's archive

Auto redirect every single to it's archive

  • I have a custom post type Portfolio registered within functions.php and I’ve created a custom archive that displays the Portfolio items. So far, so good.

    The single Portfolio item contains Title and Thumbnail, nothing else. It’s no meaning displaying the single item page…

    example.com/portfolio/portfolioitem1

    I want to automatically redirect every single item to the archive page.

    example.com/portfolio

    I could easily accomplish this with custom fields redirect from every single item but I want it done in the template files. Which is the best way to this?

  • The topic ‘Auto redirect every single to it's archive’ is closed to new replies.
Skip to toolbar