Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $args = array('post_type' => 'attachment','post_mime_type' => 'image' ,'post_status' => null, 'post_parent' => $post->ID);
- $attachments = get_posts($args);
- if ($attachments) {
- ?>
- <div id="galleryToggle" class="toggleButton closed"><span>+</span>Gallery</div>
- <ul class="galleryBox">
- <?php attachment_toolbox('small'); ?>
- </ul>
- <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement