Shortcode for user profile

10.45K viewsWordPressshortcode user wordpress
1

Hello. I tried using the shortcode [anspress page = user] but the shortcode only displays the anonymous profile. Is there a way for the content to be that of the user’s profile? If yes, how? I do not know how to encode and not synonymous improve plugin. In any case the plugin is super

Answered question
0

Any update on the [anspress page=”user”] showing Anonymous?  It is still doing this in latest version  4.1.15

Posted new comment

Hello John,
Simply add this to page template where this shortcode is being used
Add it before “get_header()”:

$curr_user = wp_get_current_user();
set_query_var( ‘ap_page’, ‘user’);
set_query_var( ‘author_name’, $curr_user->user_login);

You are viewing 1 out of 4 answers, click here to view all answers.