I would like to echo mysql data based on the current user that’s signed into WordPress.
Example:
SELECT * FROM wp_users WHERE wp_users.id=”current_signed_in_user”
So it will post all information from the table “wp_users” where the “wp_user.id” is the current signed in user’s ID.
Thanks in advance.
You should use
<?php wp_get_current_user(); ?>
but you still need to see ticket 14024to play with it .
Resolved my issue by doing the following:
🙂