Forums Forums Search & Filter Pro How can I get titles from ACF relationship field? (instead of IDs)

Tagged: ,

Viewing 10 posts - 1 through 10 (of 16 total)
  • Anonymous
    #233135

    I’m using S&F and ACF. I have 2 CPTs: Instructors and Courses

    I’m bringing instructors into the the courses CPT via a relationship field.

    I’ve got S&F set up and searching both CPTs. I have several fields working as expected, but I’m am getting the IDs of the instructors instead of the titles.

    How can I get the titles from the ACF relationship field?

    In this post:
    https://support.searchandfilter.com/forums/topic/using-acf/

    you mention:
    “Whilst we do support simple ACF fields, and also the fetching or either ID or Title from relationship fields, we do not support complex fields at this time, sorry.”

    Please advise.

    Trevor
    #233147
    This reply has been marked as private.
    Anonymous
    #233217
    This reply has been marked as private.
    Trevor
    #233221

    Which field group are they defined in?

    Anonymous
    #233225

    Custom Fields > Adult Programs > Instructors

    Anonymous
    #233227

    Or maybe you meant this:
    Custom Fields > Instructor

    Anonymous
    #233230

    Is the problem that Instructors are defined with a title, but the ACF fields are firstname and last name?

    I have also tried Last name but it didn’t produce any result.

    Trevor
    #233232
    This reply has been marked as private.
    Anonymous
    #233237

    Okay, and then I’ll need to rebuild the cache, right? Doing that now and will report back.

    Trevor
    #233240

    OK. I will wait to hear from you.

Viewing 10 posts - 1 through 10 (of 16 total)