Shortcode for user profile
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
John Kouris (Buyer) Answered question
Any update on the [anspress page=”user”] showing Anonymous? It is still doing this in latest version 4.1.15
Rahul Aryan 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);