Support

Account

Home Forums Add-ons Gallery Field Get gallery fild for user to author.php

Solved

Get gallery fild for user to author.php

  • 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!

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Get gallery fild for user to author.php’ is closed to new replies.