3 replaced http://wordpress.stackexchange.com/ with https://wordpress.stackexchange.com/
source | link

I have created an Image Upload field for a User Photo in the User Profile section in the wp-admin using Advanced Custom Fields. I realized ACF could do this per this post: http://wordpress.stackexchange.com/questions/43997/photo-gallery-on-profile-pagePhoto gallery on profile page?

How would I go about capturing the contents of the image src field in ACF? The following does not work:

<?php $publisher_photo = get_field('user_photo'); ?>

<?php echo "<img class='publisher-picture' src='$publisher_photo' />"; ?>

I even tried this, but it does not work either:

<?php $publisher_photo = get_the_author_meta('user_photo'); ?>
<?php echo "<img class='publisher-picture' src='$publisher_photo' />"; ?>

When I try to debug and echo the contents of the $publisher_photo variable, it comes back blank leading me to believe I'm not picking up this field from the User Profile in the correct way.

I have created an Image Upload field for a User Photo in the User Profile section in the wp-admin using Advanced Custom Fields. I realized ACF could do this per this post: http://wordpress.stackexchange.com/questions/43997/photo-gallery-on-profile-page

How would I go about capturing the contents of the image src field in ACF? The following does not work:

<?php $publisher_photo = get_field('user_photo'); ?>

<?php echo "<img class='publisher-picture' src='$publisher_photo' />"; ?>

I even tried this, but it does not work either:

<?php $publisher_photo = get_the_author_meta('user_photo'); ?>
<?php echo "<img class='publisher-picture' src='$publisher_photo' />"; ?>

When I try to debug and echo the contents of the $publisher_photo variable, it comes back blank leading me to believe I'm not picking up this field from the User Profile in the correct way.

I have created an Image Upload field for a User Photo in the User Profile section in the wp-admin using Advanced Custom Fields. I realized ACF could do this per this post: Photo gallery on profile page?

How would I go about capturing the contents of the image src field in ACF? The following does not work:

<?php $publisher_photo = get_field('user_photo'); ?>

<?php echo "<img class='publisher-picture' src='$publisher_photo' />"; ?>

I even tried this, but it does not work either:

<?php $publisher_photo = get_the_author_meta('user_photo'); ?>
<?php echo "<img class='publisher-picture' src='$publisher_photo' />"; ?>

When I try to debug and echo the contents of the $publisher_photo variable, it comes back blank leading me to believe I'm not picking up this field from the User Profile in the correct way.

2 added 191 characters in body
source | link

I have created an Image Upload field for a User Photo in the User Profile section in the wp-admin using Advanced Custom Fields. I realized ACF could do this per this post: http://wordpress.stackexchange.com/questions/43997/photo-gallery-on-profile-page

How would I go about capturing the contents of the image src field in ACF? The following does not work:

<?php $publisher_photo = get_field('user_photo'); ?>

<?php echo "<img class='publisher-picture' src='$publisher_photo' />"; ?>

I even tried this, but it does not work either:

<?php $publisher_photo = get_the_author_meta('user_photo'); ?>
<?php echo "<img class='publisher-picture' src='$publisher_photo' />"; ?>

When I try to debug and echo the contents of the $publisher_photo variable, it comes back blank leading me to believe I'm not picking up this field from the User Profile in the correct way.

I have created an Image Upload field for a User Photo in the User Profile section in the wp-admin using Advanced Custom Fields. I realized ACF could do this per this post: http://wordpress.stackexchange.com/questions/43997/photo-gallery-on-profile-page

How would I go about capturing the contents of the image src field in ACF? The following does not work:

<?php $publisher_photo = get_field('user_photo'); ?>

<?php echo "<img class='publisher-picture' src='$publisher_photo' />"; ?>

I even tried this, but it does not work either:

<?php $publisher_photo = get_the_author_meta('user_photo'); ?>
<?php echo "<img class='publisher-picture' src='$publisher_photo' />"; ?>

I have created an Image Upload field for a User Photo in the User Profile section in the wp-admin using Advanced Custom Fields. I realized ACF could do this per this post: http://wordpress.stackexchange.com/questions/43997/photo-gallery-on-profile-page

How would I go about capturing the contents of the image src field in ACF? The following does not work:

<?php $publisher_photo = get_field('user_photo'); ?>

<?php echo "<img class='publisher-picture' src='$publisher_photo' />"; ?>

I even tried this, but it does not work either:

<?php $publisher_photo = get_the_author_meta('user_photo'); ?>
<?php echo "<img class='publisher-picture' src='$publisher_photo' />"; ?>

When I try to debug and echo the contents of the $publisher_photo variable, it comes back blank leading me to believe I'm not picking up this field from the User Profile in the correct way.

1
source | link

Advanced Custom Fields Plugin: how would I get an image src path uploaded from User Profile?

I have created an Image Upload field for a User Photo in the User Profile section in the wp-admin using Advanced Custom Fields. I realized ACF could do this per this post: http://wordpress.stackexchange.com/questions/43997/photo-gallery-on-profile-page

How would I go about capturing the contents of the image src field in ACF? The following does not work:

<?php $publisher_photo = get_field('user_photo'); ?>

<?php echo "<img class='publisher-picture' src='$publisher_photo' />"; ?>

I even tried this, but it does not work either:

<?php $publisher_photo = get_the_author_meta('user_photo'); ?>
<?php echo "<img class='publisher-picture' src='$publisher_photo' />"; ?>