Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author scribu

    (@scribu)

    Not sure what you mean. A relationship is just a bunch of numeric ids and a type. What would you search on?

    Thread Starter [email protected]

    (@aaronrossanocomau)

    Hi, thanks for responding.
    I mean if I have a custom post type ‘person’ and it’s related to custom post type ‘company’. Then searching through custom post type ‘person’ would bring back results if the keyword matches in the related company.
    I could do it manually by allowing multiple custom post types and then for every result that is not a person, I check it’s relationship. But that would be extra work, thought maybe that could be automated as that would probably be useful functionality.

    Plugin Author scribu

    (@scribu)

    That can get messy pretty fast. You’ll have to implement this functionality yourself, using the ‘posts_search’ filter.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Search include relationships’ is closed to new replies.