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

  1. dropshot
    Posted 3 years 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...


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


    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