ID); if(isset($post_meta_data['artistpress_images'][0])){ /* * If the Gallery Name display setting is set to Yes, this function will display the artist's name. */ echo artispressGalleryTitle(); /* * This function display the gallery body. It must have the argument $post to function properly. */ echo artispressGalleryBody($post); }else{ /* * This function display the warning is not images have been added to the gallery. */ echo artispressGalleryNoImages(); } endwhile; wp_reset_postdata(); else : /* * This function displays the warning if no galleries have been addded to the site. */ echo artispressNoGallery(); endif; /* * This function displays the return to album link when the gallery has been added to a album. */ //echo artispressReturnToAlbumLink(); ?>