Hi 🙂
Hello, I added a field in the gallery wordpress user profile, and would like to pull the images in author.php
the field of text I got as follows:
<php the_author_meta (link_facebook, $ user_id);?>
but the gallery field i’m not getting: (
http://www.advancedcustomfields.com/resources/how-to/how-to-get-values-from-a-user/#ovierview
Not fond for gallery field
Hello friends!
Problem solved …
<?php
$image_ids = get_the_author_meta(‘galeria’, false, false);
$shortcode = ‘
[gallery ids="' . implode(',', $image_ids) . '"]
‘;
echo do_shortcode( $shortcode );
?>
Thanks! 😉
Hi,
I am using ACF to add custom fields to the user profiles. One of these custom fields is a Select field with multiple values. This displays fine in the profiles, and the values are saved as expected. What I would like to be able to do is to get these multiple values pulled into the author.php template so that they show in the front end.
I tried to use get_field() and the_field(), but no luck.
Any ideas as to how to display a multiple select from the user’s profile in the author.php template?
Many thanks!