Last active
December 21, 2015 12:19
-
-
Save gdeguglielmo/6304933 to your computer and use it in GitHub Desktop.
Get all the attachments with WP Simple Gallery
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
<?php | |
$images = get_post_meta($post->ID, 'wpsimplegallery_gallery'); | |
if (isset($images[0]) && count($images[0]) > 0) { | |
foreach ($images[0] as $id) { | |
echo wp_get_attachment_image($id, 'thumbnail' ); | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment