Selecting pictures using metadata
-
Hi!
First of all many thanks for this very powerful, well documented and useful plugin!
I started using it since some days.
I want to create a gallery, selecting only pictures from media library which were done using a given camera.
I tried using the meta data already attached, finding the camera values, as found in this support forum, but It didn’t work.
So I created a custom field, map all the pictures and it worked.
Here it is the code
[mla_gallery]
meta_query=”
array(
array(
‘key’ => ‘source-camera’,
‘value’ => ‘PULP 4G’,
‘compare’ => ‘=’
)
)”
meta_key=”source-camera”
mla_caption=”{+title+}”
oderby=date
order=DESC
post_parent=none
type=”rectangular”
mla_alt_shortcode=gallery
[/mla_gallery]My problem is the following: I checked the field
“Enable custom field mapping when adding new media”
but when adding new picture, either from wordpress android app or directly using media library on pc, the new custom field is not automatically mapped. I have to run again the procedure of mapping.
My questions are:
is it possible having the new custom field mapped automatically in the procedure of uploading?
Can you help me in writing the above code selecting directly the camera values, without any mapping?
thankshttps://www.ads-software.com/plugins/media-library-assistant/
- The topic ‘Selecting pictures using metadata’ is closed to new replies.