• Resolved evv63

    (@evv63)


    Hi. Please tell me how to display only 3 gallery images on the post page? Thank you!

Viewing 1 replies (of 1 total)
  • Plugin Support Val Meow

    (@valwa)

    Hey @evv63! 👋

    I’m assuming you’re talking about listing pages that show your post previews, and whether it’s possible to avoid rendering the full gallery shortcode in that context.

    Currently, this isn’t possible out of the box, but the next Gallery update will handle this automatically. There will be a new option, “Truncate on Listing Pages” enabled by default, which will do that for you.

    You’ll also be able to change how many media items are shown on listing pages, the default is 4, by using this filter:

    add_filter( 'mgl_archive_images_limit', function( $limit, $atts ) {
        return 6; // Show 6 images on archive pages
    }, 10, 2 );

    Thanks for your patience and understanding, hope this helps! 🙇

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.