Getting posts by taxonomy

I usually use the tax_query parameter: $args = array( ‘post_type’ => ‘my_cpt_name’, ‘post_status’ => ‘publish’, ‘posts_per_page’ => -1, ‘tax_query’ => array( array( ‘taxonomy’ => ‘uom_system’, ‘field’ => ‘slug’, ‘terms’ => ‘metric-system’ ) ) ); $results = get_posts( $args ); See http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters

wp_insert_user keeps echoing values

If you really narrowed it to line 1371 then you probably have a plugin hooking on those hooks and outputing that message, might even be your own code as it looks like somthing that supposed to be sent as a response to AJAX request. Just search for user_register and profile_update in your code and in … Read more

WordPress actions for plugin admin UI page

You may not have access to $_GET. I think you may need global $wpdb, $posts, $_GET; Second, everything happens in the constructor, which is when the plugin loads, which is every time any page of the site loads. So, every time a page loads you are checking $_GET[‘action’] for either ‘edit’ or ‘delete’. Those action … Read more