CPT: multiple loops with different terms

Have found the solution I only have to add the right tax_query… $posts_info = new WP_Query(array( ‘post_type’ => ‘tarife’, ‘posts_per_page’ => 3, ‘post_status’ => ‘publish’, ‘post__in’ => $products, ‘orderby’ => ‘title’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘tarif_kategorie’, ‘field’ => ‘slug’, ‘terms’ => ‘info’, ), ), )); $posts_gf = new WP_Query(array( ‘post_type’ => ‘tarife’, ‘posts_per_page’ … Read more

Ajax load more inside custom post type taxonomy

Assuming the function hooked to the action load_posts_by_ajax is your load_posts_by_ajax_callback() code (seems a reasonable assumption), the query arguments can be easily modified. You mention “displays only 3 posts” which is what the code is designed to do. If you wish to show 10 posts, update the posts_per_page argument listed. ‘posts_per_page’ => ‘3’, The bigger … Read more