This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Referencing pods bidirectional field correctly

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Referencing pods bidirectional field correctly Reply To: Referencing pods bidirectional field correctly

#32481
Ernest MarcinkoErnest Marcinko
Keymaster

Hi,

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.
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.