• 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 Fallback Featured Image & Default for Different Authors in Genesis

This code enables you to add a fallback featured image for each post author in Genesis child themes only.

The code includes the user I.D for each author.

The fallback image is pulled from the child themes images folder.

The above code uses the genesis_pre_get_image filter however you could also use either the genesis_get_image or genesis_get_image_default_args filters.

The fallback images are only added if a featured image hasn’t been set.

For any posts where you haven’t set an author I.D, a default fallback featured image will be displayed.

This post answers this forum question:

I need to have my default image be different depending on who the author is.

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