Gallery Featured Image | WordPress.org

[ad_1]

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.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer