Support

Account

Forum Replies Created

  • Thanks for the info! I think I may still be doing something wrong, but here is what I have so far

    <?php
    $field_name = "author_header";
    $post_id = "user_{$user_id}"; 
    $publisher_photo = get_field($field_name, $post_id);
    $image_src = wp_get_attachment_image_src($publisher_photo);
    echo '<img class="grayscale" src="'. $image_src[0] .'" />';
    ?>

    Any advise? thanks!

    Here is the working solution

    <?php
    $user_id = $user->ID;
    $publisher_photo = get_the_author_meta('author_header', $user_id);
    $image_src = wp_get_attachment_image_src($publisher_photo);
    echo '<img src="'. $image_src[0] .'" />';
    ?>
  • This reply has been marked as private.
Viewing 2 posts - 1 through 2 (of 2 total)