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

WP SITES

2784

Original Genesis Tutorials & 6000+ Guaranteed Code

Snippets

  • Consultation
  • Full Access
  • Log in

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

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags