$wpdb->wp_users returning empty value for

First of all why you would need custom query for this basic functionality to get users, when WordPress has inbuilt function get_users(). Anyway for custom query, table name is defined as function custom_func(){ global $wpdb; $getTest = “SELECT * FROM $wpdb->users LIMIT 1”; $arrayReturned = $wpdb->get_results($wpdb->prepare($getTest)); } It’s $wpdb->users or $wpdb->post and not $wpdb->wp_users, what … Read more

Load wordpress content in other domain

You mean: <?php include “http://www.sample.com/wp-load.php”; This setting is disabled/not allowed by default in most web servers (php.ini) so you can not use the include to include the files from a remote address for security reasons. If you still want to allow inclusion of remote files, the directive allow_url_include must be set toOn(or 1) inphp.ini`. But … Read more