• I’m looking for a simple code to place in my custom single-page (portfolio) to output all the images in a gallery. So i can display them in a Foundation grid-block:

    <ul class="small-block-grid-3">
      <li><!-- gallery item --></li>
      <li><!-- gallery tem --></li>
      <li><!-- gallery item --></li>
    </ul>

    So basicly: i want al
    <li> </li> around the gallery images.. thats all…

    thnx@

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter myrok24

    (@myrok24)

    no one?

    Moderator bcworkz

    (@bcworkz)

    The ‘post_gallery’ filter allows you to bypass the default gallery code and output anything you like. Unfortunately, it also bypasses all the code that collects the images and everything else, so you need to replicate that as well in your callback. You can copy the default code into your callback, editing the output as needed, but then you miss out on any improvements to future gallery versions unless you monitor updates to the gallery_shortcode() function.

    FYI, it’s not a good idea to bump here because many of us regulars only read posts with no replies. As soon as you bump, it appears as a reply. I only found your post because I was bored ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Pull images from gallery into list’ is closed to new replies.