Skip to content

Instantly share code, notes, and snippets.

View MickeyKay's full-sized avatar
🐶
Making things

Mickey Kay MickeyKay

🐶
Making things
View GitHub Profile
@GaryJones
GaryJones / functions.php
Last active May 27, 2017 18:13
Genesis: Stop archives from using first attached image as fallback when no featured image is set.
<?php
// Don't include the above.
add_filter( 'genesis_get_image_default_args', 'prefix_stop_auto_featured_image' );
/**
* Stop Genesis archives from using first attached image as fallback when no featured image is set.
*
* @param array $args Default image arguments.
*