ACF repeater in results

This topic contains 2 replies, has 2 voices, and was last updated by joipolloi58 joipolloi58 1 year, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #30775
    joipolloi58
    joipolloi58
    Participant

    Hello

    We would like to be able to show an ACF repeater field in the search results, just wondering if that’s possible. I’ve the following but it just prints Array

    {recipe_requirements_ingredients count=5 separator=’, ‘}

    #30776
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    It is not possible, repeater fields all have custom structures and sub fields with sub manes. To show a repeater, you can try the asp_results hook to do it programmatically, I’m afraid there is no other way.
    We tried to implement a solution to do this via the back-end, but due to the nature of these fields is not possible.

    Best,
    Ernest Marcinko

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


    #30778
    joipolloi58
    joipolloi58
    Participant

    OK that looks good. Will using that hook allow the matching word to be highlighted.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.