Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Referencing pods bidirectional field correctly
This topic contains 2 replies, has 2 voices, and was last updated by vfmg26 1 year, 11 months ago.
- AuthorPosts
- March 31, 2021 at 1:53 pm #32468
Search within a pods bidirectional field, shows not the title, but a index. How can I resolve this?
I’d like to select persons, and filtering with a drop down “Gemeinde”. This is a pods bidirectional field and I’d like to see the title with the parameters {get_values} in the custom search.
But it shows me the reference code and not the post title. How can I change this?
Attachments:
You must be logged in to view attached files.March 31, 2021 at 3:10 pm #32481Hi,
That is a very tough one, and probably not possible. Reference fields are stored as serialized objects, and by default there is no way of knowing what they are referencing to – that is why we can not support them for filters.
Best,
There is a front-end filters API. In theory, you could create/modify a filter based on the field values. For that however you may need extensive knowledge on the PODs API, on how to get and add them to the filters. And that is probably the easy part – because the values are stored as serialized object, but the database handles that as strings, you also need to set the values correctly.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 31, 2021 at 3:44 pm #32487Thanks for your reply. So I will have then to add this entries manually (approx. 50 items), which will be easier to implement.
- AuthorPosts
You must be logged in to reply to this topic.