Hi I have used the NextGen Gallery Plugin in WordPress. Here I make a gallery and then in Custom Post Type UI Plugin I have one field which is of NextGen Gallery.
Now I want to show all the images which are in that field in my custom template. Any help would be appreciated. Here is the sample code what I am doing
<?php
$args1 = array(
'post_type' => 'categories'
);
$the_query1 = new WP_Query( $args1 );
?>
<?php if ( have_posts() ) : while ( $the_query1->have_posts() ) : $the_query1->the_post(); ?>
<div class="conbg"><a href="<?php the_permalink(); ?>"><p class="con-hadin1"><?php the_field('name'); ?></p></a></div>
<img src="<?php the_field('gallery'); ?>" />
/* Here i want to display all the images */
<?php endwhile; else: ?>
<p>There are no post or pages here.</p>
<?php endif; ?>
Aucun commentaire:
Enregistrer un commentaire