• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2665

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

Set Default Featured Image for Custom Post Type in Genesis

This code enables you to add a fallback image to your child theme images folder which is set for all single CPT’s which haven’t set one.

There’s 2 snippets in this post:

  1. The 1st sets the fallback image for display on your custom post types archive
  2. The 2nd sets the fallback image for display on single CPT pages, either before or after the entry title as well as an option to align left or right when wrapped in text.

single-cpt

Register for full access

Related Tutorials

  • Customise The Display of Featured Images On Single Posts
  • Add or Remove Image Before or After Post Title

Custom Post Type

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems