I’m using acf repeater & image fields to allow multiple images upload. I’m also using search & filter plugin to filter posts by post_meta. All the post meta fields created by acf are filtered correctly, while the (repeater & its child images upload fields) can’t be filtered.
I contacted search & filter support, and this is their response:
This is not supported with S&F directly.
You could add a hidden custom field to your posts, which when saved will detect if there are any images in the post
You could then use this custom field as an option in S&F to add this tickbox – something along the lines of:
1) Detect when post is saved – https://codex.wordpress.org/Plugin_API/Action_Reference/save_post
2) Do some custom detection if images are attached to the post
3) If so, update the post meta – https://codex.wordpress.org/Function_Reference/update_post_meta
4) Use the Key you used in step 3 in a S&F “Post Meta” field.
Can you help me with that?
3 days and no reply? really?
Thanks for the topic, but please remember that this is a community forum, not a support ticket. If you wish to receive 1 on 1 support, please open a ticket.
Querying and sorting sub fields is quite difficult, but possible. Please read over these articles to get a better idea on how this is possible: