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

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: ASP and the relationship field of ACF #19214
    MarcoMarco
    Participant

    Hello,

    Thanks for this code, it works well but it doesn’t achieve what i’m try to do.
    If I understand your code right, it fetch every item with a certain relationship field and index his title or content so it can be return in the search.
    But i’m already indexing the custom posts “authors” (which are linked with a relationship to the custom post “books” ) in the index table so this code index items that are already in the table.
    The search work already well when i search a book or an author because i’m indexing those two custom posts.
    Actually only the books with the name of the author in the description of the book are returned, it want all the books from the same author to be in the search results (without the need of putting the name of the author in a “additional search tag” for each book).
    What I need is that when i search for the name of an author the search “read” the relationship field that link this author to books and return all the books linked to this author.
    Do you think this kind of thing can be done ?

Viewing 1 post (of 1 total)