ACF user fields not displaying in page
-
Greetings everyone,
I’m using ACF for a kind of Customer area, where users acess a one-page based page via login, which shows things for download and user information, without acessing wp-admin features, just in front end. Only subscriber users can view this front-end stuff.
With ACF, I inserted many user fields only for subscribers. And created subscriber users for testing also with values for their custom fields.
Although I’m getting difficulties to display the user/author’s custom fields in the page after them logging in the site. I’m using AllowPHP plugin for executing php actions on page.
I searched a lot and found many workarounds, like this ones:$value = get_field("course"); echo $value;
the_author_meta( 'turma' ); echo $value;
$link = get_author_posts_url( $value['ID'] );
$author_id = $user->ID; $value = get_field('turma', 'user_'. $author_id );echo $value;
…and they did not solved my problem.
Somebody can help me on this? I can’t find out a solution for this.
Thanks in advance,
Bruno C.
- The topic ‘ACF user fields not displaying in page’ is closed to new replies.