Previewing Galleries – using shorttag to show first 3 photos
I’ve got a site with a series of Galleries. I’ve currently got a page listing them (a custom query) which has the title, excerpt and a link to the gallery. Using
<?php echo do_shortcode('[gallery]'); ?>I’m able to include the full gallery on this page, but would like to limit it to just the first 3 photos. Is this possible?
I’m looking to do this:
* List only category “gallery” (done)
* Show title, excerpt, link (done)
* Show first 3 photos from gallery (help!)
- The topic ‘Previewing Galleries – using shorttag to show first 3 photos’ is closed to new replies.