• Resolved coachtest

    (@coachtest)


    Is there a way to pull in user data, custom fields etc… I’m pretty new to this so I may not be describing this correctly. What I could like to do is create a block with part of the block using the current user and registration date

    ex. “Hi Current-User | Member Since Registration-Date”

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter coachtest

    (@coachtest)

    Figured it out with php. using <?php echo do_shortcode(“[wpv-user field=’user_firstname’]”); ?>

    Is there a better way? or is it possible with handlebars?

    • This reply was modified 4 years, 7 months ago by coachtest.
    • This reply was modified 4 years, 7 months ago by coachtest.

    You could also use the WordPress wp_get_current_user() function in your PHP to get user ID, name, email,…

    Thread Starter coachtest

    (@coachtest)

    Thanks I’ll use that.

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

The topic ‘Get user data’ is closed to new replies.