Referencing pods bidirectional field correctly

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 vfmg26 1 year, 6 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #32468
    vfmg26
    vfmg26
    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?

    Attachments:
    You must be logged in to view attached files.
    #32481
    Ernest Marcinko
    Ernest 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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


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