WordPress.org

Ready to get started?Download WordPress

Forums

Auto redirect every single to it's archive (1 post)

  1. dropshot
    Member
    Posted 1 year ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic