Created
September 12, 2013 14:38
-
-
Save brycejacobson/6538553 to your computer and use it in GitHub Desktop.
Get Pods Image Attachment
This file contains hidden or 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
<?php | |
add_action( 'genesis_before_entry_content', 'nutrition_facts', 15 ); | |
function nutrition_facts() { | |
if ( get_post_meta( get_the_ID(), 'nutrition_facts_image', true ) ) : ?> | |
<p class="nutrition-facts"><?php echo pods_image( get_post_meta( get_the_ID(), 'nutrition_facts_image', true ), 'full' ); ?></p> | |
<?php endif; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment