Skip to content

Instantly share code, notes, and snippets.

@brycejacobson
Created September 12, 2013 14:38
Show Gist options
  • Save brycejacobson/6538553 to your computer and use it in GitHub Desktop.
Save brycejacobson/6538553 to your computer and use it in GitHub Desktop.
Get Pods Image Attachment
<?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