A really simple plugin which adds a shortcode:
[gallery_from_regex_matches] in which a regex should be specified. It will then look for matches in the descriptions and titles of all published images in your library, and create a gallery from the matches it finds.
- Use for example like this
[gallery_from_regex_matches regex="/lillill/i" exclude_ids="764"], and it will generate a gallery of all your pictures of “Lillill”, except the one which has ID 764.
- The same params (except for
ids) as for the
[media]shortcode can be used (as this plugin calls that shortcodes callback function (
gallery_shortcode()) to generate the gallery), so if you want to specify a particular type (style) of gallery from for example your cat pictures , this might do the trick:
[gallery_from_regex_matches regex="/(cat|kitten)/i" type="square"].
- There are no bells and whistles for this plugin but it could potentionally be added in the futre.
No screenshots provided