WP_User_Query and user posts

If you pass in the fields parameter to your user query you can easily get an array of ids to the pass in to your wp query : //WP User Query $author_query = new WP_User_Query( array ( ‘number’ => 3, ‘fields’ => ‘ID’ )); $author_results = $author_query->results; //WP Query $postArgs = array ( ‘author__in’=> $author_results, … Read more

Use title of post as argument for query

Yes! You meant to use get_the_title() which returns the title as a string. the_title instead outputs it to the browser. The same is true of many other functions in WordPress, e.g. the_post_thumbnail vs get_the_post_thumbnail or bloginfo vs get_bloginfo For future reference, a search on https://developer.wordpress.org will usually reveal related functions

PHP – Loop custom post type categories within jQuery Tabs

You can fire query only by ‘meta_key’=> ‘selsubcat’ without meta_value `and you will get all subcategories. Then you should loop outside you tab with some increment(maybe a name of category or numeric id) something like this: <?php foreach( $posts as $post ): setup_postdata( $post ); ?> <div id=”tabs-<?php the_ID(); ?>”> <table id=”table-<?php the_ID(); ?>” class=”display” … Read more

Modify query posts

You have php syntax error. Anyway you can both use $args[‘posts_per_page’] = 3; or $args[‘posts_per_page’] = array(‘3’);