2

Short answer to "Which property am I supposed to use": Use first_name and last_name. Longer answer: The properties first_name, user_firstname, last_name and user_lastname are defined in the WP_User class, and despite the different names (i.e. one with user_ and the other without that prefix): Both first_name and user_firstname use the value of the ...


2

$wpdb->get_results() returns an array on success, so you can't simply echo $result;. Instead, you can use foreach to loop through the results and display whatever the data that you want to display: $results = $wpdb->get_results( $q ); foreach ( $results as $row ) { echo $row->meta_value . '<br />'; } But I can see that you're trying to ...


Only top voted, non community-wiki answers of a minimum length are eligible