Extract data from table as per user
-
?Hey, How can I fetch data from data table on user profile page as per username?
Like I have data of 500 users and want to show every user data on their profile page so how can i do this?Can anyone help me pls?
I was using this code before but now this code crashes the user profile page.
[insert_php]
$user_id = um_profile_id();
um_fetch_user( $user_id );
if (is_user_logged_in() && get_current_user_id() == $user_id)
{
$emm = um_user(‘user_email’);
$short = ‘[table id=4?filter_columns=”2″ filter = “‘.$emm.'”]’;
echo do_shortcode($short);
}
[/insert_php]`Thanks
Avinav
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Extract data from table as per user’ is closed to new replies.