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

WP SITES

2662

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

Use Custom Featured Image On Single Posts Different To Archives In Authority Pro

The code in this download folder enables you to use a different featured image on single posts to the image displayed on archive pages.

Archive Page
Single Post

You can choose from 2 options to add your custom image using WordPress custom fields or ACF.

Demo Video

Shows you how to add a unique featured image for display on single posts which is different to the image shown on archive pages.

Tested using the Authority Pro child theme by StudioPress.

Installation Steps

There’s 1 – 2 steps :

  1. # Upload the file named featured-images.php to the Authority Pro themes lib folder overriding the default file of the same name.
  2.  

  3. # Add your single post image on the Edit Post screen using custom fields native to WordPress or ACF. See instructions below under the Add Image sub heading.
  4.  

Download Folder

Add Image

Create a custom field named single_image and add the link for your image to the value field like this :

If you want to use ACF to add your image, import the file named 72894-acf.json using the ACF plugins > Custom Fields > Tools > Import field.

You’ll also need to remove or comment out the code on line 29 of image-functions.php and uncomment the code on line 41. This option allows you to use the Customize > Theme Settings > Content Archive > Featured Image Size settings to select the single-featured-image size like you see in this screenshot :

Authority Pro Theme Custom Fields Featured Image

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