• Resolved mikewalker24

    (@mikewalker24)


    Thanks for the great plugin! I’m wondering if the plugin enables search for relational fields? I have a custom field on a CPT that can be populated with multiple items of a custom taxonomy called “team members”. The field returns the Term Object and appears as a multiselect. I was hoping there’d be a way to have text searches for a specific team member show results for posts where that team member is assigned in the multiselect.

    I appreciate your time and thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hi @mikewalker24,

    Thank you for your message.

    Unfortunately, this is not possible, because for the Post Object field, ACF only saves the post ID. Such a SQL query you mention is possible in theory, but its execution time would be much longer. The number of seconds per query would have to be taken to the second power. This is its limitation of the WordPress database.

    If you encounter any other problems, please, feel free to reach out to me.

    I wish you a great day, Mateusz

    Thread Starter mikewalker24

    (@mikewalker24)

    Got it, thanks Mateusz!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Does it work with relational fields?’ is closed to new replies.