get attachment description – for gallery
-
hey ive tried a lot of things here but cant get this working..
i have an image gallery being generated by a the wpshower portfolium theme, basically i want to show the img decription under the image, before the gallery nav.
First probem – i cant access the description, second if i manage to pull some content, it appears as an extra attachment in the loop.here is the default gallery loop from the theme:
`<?php
$args = array(
‘post_type’ => ‘attachment’,
‘orderby’ => ‘menu_order’,
‘order’ => ASC,
‘numberposts’ => -1,
‘post_status’ => null,
‘post_parent’ => $post->ID,
‘exclude’ => get_post_thumbnail_id());
$attachments = get_posts($args);
if ( $attachments ):
foreach ( $attachments as $attachment ):
echo wp_get_attachment_image($attachment->ID, ‘full’);
endforeach;
endif;
?>`Any help appreciated – seems like it shouldbe simple but i cant seem to get the solution 🙁 !
http://lucybenson.net/2012/portfolio/projections-from-jupiter/
- The topic ‘get attachment description – for gallery’ is closed to new replies.