Media Library Assistant
[resolved] Jetpack gallery styles integration? (4 posts)

  1. Alexander S. Kunz
    Posted 2 years ago #

    Hello David,

    the most recent versions of Jetpack include three nice new gallery layouts: rectangular (tiled), square and circles. They extend WP's built-in [gallery] shortcode with a new "type" parameter, for example type="rectangular" is used to get the nice "masonry" like gallery layout.

    I quite like these, and was wondering if it's possible (technically, and legally) to integrate them with the [mla_gallery] shortcode.

    Here's what a tiled (rectangular) gallery looks like:



  2. David Lingren
    Plugin Author

    Posted 2 years ago #

    Thank you for this suggestion. I have downloaded Jetpack 2.2 and I will investigate the possibility of extending the [mla_gallery] shortcode to support Jetpack's enhanced gallery types.

    Jetpack is quite large and sophisticated, as you might expect. It make take me a while to complete my assessment. Thanks in advance for your patience; I will post my progress to this topic.

  3. David Lingren
    Plugin Author

    Posted 2 years ago #

    I have just released version 1.30, which includes the new mla_alt_shortcode parameter you can use to combine [mla_gallery] with any other shortcode that takes a list of attachment IDs as input. This includes all the Jetpack gallery variations. For example, you can get a "tiled mosaic" gallery by coding something like:

    [mla_gallery attachment_category=vegetable tax_operator="NOT IN" mla_alt_shortcode=gallery type="rectangular"]

    In this example, mla_alt_shortcode=gallery directs [mla_gallery] to pass the results of its data selection off to the gallery shortcode, and type="rectangular" is intercepted by Jetpack and used to format and display the results.

    Let me know if you have any trouble with this new feature. Thanks for the suggestion and for your interest in the plugin.

  4. Alexander S. Kunz
    Posted 2 years ago #

    That's a fantastic new feature, David. The mla_alt_shortcode parameter opens a WORLD of possibilities to combine the powerful queries of MLA with other gallery plugins. Fantastic idea!!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Media Library Assistant
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic