display only the info of the current user
-
Hi, thank you for creating this plugin. It is great!
I did the follow code and it shows all the information of all user, but it is not what I want. I want to display only the info of the current user.
Could you please let me know what I did wrong?<?php
global $current_user;
get_currentuserinfo();$user = $current_user->user_login;
$email = $current_user->user_email;
$id = $current_user->ID;echo $id;
echo do_shortcode(“[dbview name=’UserCar’ arg1=$id]”);
?>Remarks:
UserCar Database has a column “UserID”.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘display only the info of the current user’ is closed to new replies.