Use without shortcodes for conditional statements?
-
Trying to use the meta data to restrict access. Found this code, on author’s website, to retrieve the current user’s meta info:
global $current_user;
$data = get_user_meta($current_user->ID, ‘my_key’);However, when I try to echo the $data variable (using each of my custom keys), I get “Array” instead of the expected output.
I’d happily use a shortcode instead, but from what I can tell, you can’t really use conditional statements. I need to display items with specific tags to different groups of people that potential match more than one meta key value.
Any suggestions on how to use this plugin without the shortcodes?
https://www.ads-software.com/extend/plugins/user-meta-manager/
- The topic ‘Use without shortcodes for conditional statements?’ is closed to new replies.