Add Featured Image To Single Custom Post Type Pages

This tutorial provides one method which enables you to display your featured image on single CPT’s in any Genesis child theme.

All you need to do is create a new file in your themes root directory using these instructions and PHP code.

  1. Simply create a new file using a code editor like Notepad++
  2. Copy the PHP code from the view raw link in the Gist labelled single-portfolio.php
  3. Name the file single-cpt-name.php, replacing cpt-name with the name of your custom post type.
  4. Upload the file to your child themes root directory.

This post answers this forum question:

I’ve created a custom post type for my site (I’m using the Agent Press Pro theme) and I’d like to have the featured image attached generate an automatic image insert on my single portfolio pages, much the way LISTINGS does within this theme.

Related Tutorials

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.