Normally genesis_get_image()
is fetching the first image if you are not setting any featured image for your post. But sometime we are not wanting this default option. Using this simple code you can disable this:
1 2 3 4 5 6 |
add_filter( 'genesis_get_image_default_args', 'gd_show_only_assigned_featured_image' ); function gd_show_only_assigned_featured_image( $args ){ $args['fallback'] = 'no-attachment'; // By Default it is 'first-attached' return $args; } |
Leave a Reply