Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter NWTD

    (@nwtechie)

    FWIW, this is what I’m attempting to use to pull that value of the ACF:

    $author_id = get_the_author_meta(‘ID’);
    $affiliation = get_field(‘school-organization’, ‘user_’. $author_id );

    Thread Starter NWTD

    (@nwtechie)

    I found my solution.

    In template-tags.php on line 272, I added: $affiliation = get_field('school-organization', 'user_'. $author->ID );

    on line 272, I called in the $affiliation variable. It worked like a champ. But since this will be lost on the next plugin update, this thread will be my reminder on how to update it, unless I can figure out how to add this to my functions.php.

    • This reply was modified 7 years, 7 months ago by NWTD.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Appending ACF to an author's name in the byline’ is closed to new replies.