WP SITES

2952 Tutorials & 191 Plugins

2 Ways To Use Different Featured Image Sizes On CPT & Standard Archives

By default, Genesis only enables you to set 1 size for featured images using the Genesis > Theme Settings > Content Archive settings.

These options will affect any blog listings page, including archive, author, blog, category, search, and tag pages.

If you add a custom post type without a archive page template, the featured image settings will also affect your CPT archive meaning the image size and alignment will be exactly the same.

In order to use different settings on your CPT archive so you can use a different sized image and alignment, you have 2 options:

  1. You can add a custom template for your CPT archive ( provided below )
  2. You can add code to your functions file to conditionally change the featured image size on your CPT archive pages.

Demo Video

The video shows the full size featured image on the custom post archive which is different to the thumbnail image size on standard archive page types.

Solution 1

If you are using the Genesis Portfolio Pro plugin, you’ll need to use this solution.

Add this file to your child themes root directory and modify the value for the image size within the genesis_get_image() function.

Replace CPT in the above file name with the name of your custom post type according to the WordPress Template Hierarchy.

Solution 2

No need to use a custom template when you can simply add code to your child themes functions file and conditionally control the featured image size on any type of archive page templates including custom post types and custom taxonomy types:

Related Tutorials

Was This Tutorial Helpful?