Skip to content

Instantly share code, notes, and snippets.

@wpsmith
Forked from Dirtyern12/gist:5001288
Last active December 14, 2015 00:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wpsmith/5001305 to your computer and use it in GitHub Desktop.
Save wpsmith/5001305 to your computer and use it in GitHub Desktop.
<?php
function wps_do_pitbull_image_one() {
global $post;
wps_id_open( 'pitbull_image_one' );
$pitbull_image_one_id = genesis_get_custom_field( '_d2c_pitbull_image_one' );
echo wp_get_attachment_image(
$pitbull_image_one_id,
'smallersquare',
false,
array(
'class' => 'attachment-smallersquare',
'alt' => trim( strip_tags( get_post_meta( $pitbull_image_one_id, '_wp_attachment_image_alt', true ) ) )
)
);
wps_div_close();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment