Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › image search custom field
This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko 6 years ago.
- AuthorPosts
- September 22, 2017 at 7:33 am #14843
Hello!
I want to put in the search image of the articles a custom field of each article that contains an image. Is it done as in catch? It does not work for me. 🙁Attachments:
You must be logged in to view attached files.September 22, 2017 at 1:01 pm #14846Hi!
Does the field contain the image URL or the image ID?
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
September 22, 2017 at 4:25 pm #1485291/5000
I send you the captures:
Capture 1: Custom Field
Capture 2: Custom field phpAttachments:
You must be logged in to view attached files.September 25, 2017 at 10:58 am #14864Oh, okay, so based on the code this is not just a custom field, but a sub-field for a ACF repeater field. That means that the image is not stored within that field name, but this is used to store multiple (repetitive) images for rows within the post.
Can you please try this configuration: https://i.imgur.com/SDuvsU8.png
It might be able to get the image from the filtered content. If that does not work I will try to construct a custom code to somehow get the first sub field, but I’m not sure if that is possible outside the post loop.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.