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

ACF repeater in results

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #30775
    joipolloi58joipolloi58
    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 MarcinkoErnest 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.

    #30778
    joipolloi58joipolloi58
    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.