Create custom fields/meta data gender+country – radiobuttons and dropdown on register screen for these fields
Create custom fields/meta data gender+country – radiobuttons and dropdown on register screen for these fields
Create custom fields/meta data gender+country – radiobuttons and dropdown on register screen for these fields
Preventing concurrent update of data
How to toggle delete/update user meta values?
You are using get_currentuserinfo in a wrong way because you are passing parameters that this functions doesn’t accept and you expect that the functions return directly what you want. get_currentuserinfo doesn’t accept any parameter, returns a WP User object and require the global $current_user var. Anyway, I prefer to use wp_get_current_user() in order to avoid … Read more
You should import the schools as a table in the database, separate from the other WordPress tables. You can than write a function that selects and returns schools and eventually link it to the field via ajax using something like select2 or jquery autocomplete.
All of this can be done using WP_User_Query: $users = new WP_User_Query(array( meta_query( array( ‘key’ => ‘login_status’, ‘value’ => ‘0’ ), array( ‘key’ => ‘active_code’, ‘value’ => ‘3f7431e226893f16cbe44424850d00ad’ ) ) )); This will return a list of users that meet your requirements. Then you can get the ids like so: $user_ids = wp_list_pluck( $users->get_results(), ‘ID’ … Read more
Would like to add a “leaderboard” (custom field) to a custom post type
Custom Post Type with /%shop_name%/gallery/%gallery% permastruct?
The QA that you have linked to is related but not needed here. meta_value_num is still not part of the user_query core and so, your meta_value_num parameter has no effect on the query. Just use meta_value as described on codex and you’ll get what you want.
Just remove the ID then. $images = get_the_author_meta( ‘images’, $user->ID ); $images = explode(‘,’,$images); $images is an Array isn’t it? Then I hope this one can help you. https://stackoverflow.com/questions/2448964/php-how-to-remove-specific-element-from-an-array