Last active
December 18, 2015 03:58
-
-
Save braddalton/5721687 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'genesis_after_post_title', 'custom_field_before_content' ); | |
/** | |
* @author Brad Dalton - WP Sites | |
* @example http://wp.me/p1lTu0-9Yz | |
*/ | |
function custom_field_before_content() { | |
if(is_single() ) | |
if( get_field('second_image') ): | |
?><img src="<?php the_field('second_image'); ?>" alt="" /><?php | |
endif; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment