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

Referencing pods bidirectional field correctly

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #32468
    vfmg26vfmg26
    Participant

    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?

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

    #32487
    vfmg26vfmg26
    Participant

    Thanks for your reply. So I will have then to add this entries manually (approx. 50 items), which will be easier to implement.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.