how set up the number of attachments
-
hi,
i use pods in my template single-$podsname.php.
how could i set up the parameter of “numberposts” like within the wp_get_attachment_image function, because pagination of attached images is not needed?
here my written code at this moment:<?php //pods_image if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <?php $images = get_post_meta( $post->ID, 'works' ); foreach ( $images as $image ) { $testtitel = get_the_title(); echo '<li class="nav3"><a title="'.$testtitel.' - '.$image['post_title'].'" class="thumb" href="'.$image['guid'].'">'.pods_image( $image, 'works-navi' ).'</a> <div class="caption"> <div class="image-desc"><p>'.$image['post_title'].' '.$image['post_excerpt'].'</p></div> </div> </li>'; } ?> <?php endwhile; ?> <?php endif; ?>
- The topic ‘how set up the number of attachments’ is closed to new replies.