• Resolved ernstwg

    (@ernstwg)


    Hi. Is there a mla_gallery shortcode to present the featured_image of a post? Today I am playing with justified image grid in order to achieve this. That plugin has a parameter ids=featured. But there are no other needs for this plugin, so if mla has this function it would be useful for me.

Viewing 1 replies (of 1 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for your question. You can use [mla_gallery] to accomplish your goal. The “Post Type, Post Status” section of the Settings/Media Library Assistant Documentation tab includes:

    You can change the post_type parameter to compose a “gallery” of WordPress objects such as posts, pages and custom post types. For example, to display a gallery of the published posts in a particular category you can code something like:

    [mla_gallery category=some-term post_type=post post_status=publish post_mime_type=all post_parent=all]

    Note that you must also change the post_status post_mime_type and post_parent because the default values for those parameters are set for Media Library image items.

    The gallery thumbnail is taken from the Featured Image of the item, if set. You can use the size parameter to display any of the available image sizes. If no Featured Image is set, the Title will be used instead.

    You can find additional information in the Documentation tab. I am marking this topic resolved, but please update it if you have problems or further questions regarding the use of post_type and post_status to compose your gallery.

Viewing 1 replies (of 1 total)

The topic ‘Gallery Featured Image’ is closed to new replies.