Site logo

Archived topic

User Field on Frontend and into blocks

1 reply · Started by Marco on May 27, 2021

Viewing posts 1–2 of 2

Hi. Maybe someone can suggest me a solution though is not direct connect to GP
I need to show in a page a user field like First Name, Birth Date, and other.. maybe added by ACF or other solution directly inside a Block of GB or simply into paragraph.
I have try creating a shortcode using wp_get_current_user(); but it don't go inline.

I want create a page like:


<h1>Title page of [user field="first_name"]</h1>
<p>Your birth date is [user field="birth_date"] and you was born in [user field="birth_location"]</p>

Of course before I have to create this field.

Thankyou

Hi there,

so does the field display ? Its just not in the correct position ?

This archived topic is closed to new replies.