Adding a category view to a page

Sorted it… get_header(); ?> <div id=”content” class=”site-content inner”> <div id=”primary” class=”content-area”> <main id=”main” class=”site-main” role=”main”> <p class=”sixhundred”>Intro.</p> <!– START OF THE FLEX CONTAINER, THE UNORDERED LIST –> <ul class=”grid-wrap”> <!– WP LOOP STARTS HERE –> <?php if ( have_posts() ) : query_posts( “category_name=basic-skills” ); while ( have_posts() ) : the_post(); ?> <!– LIST ITEM FOR … Read more

Is it possible to query a category with specified posts?

You should use a custom select query: $querystr = ” SELECT * FROM $wpdb->posts LEFT JOIN $wpdb->term_relationships ON($wpdb->posts.ID = $wpdb->term_relationships.object_id) LEFT JOIN $wpdb->term_taxonomy ON($wpdb->term_relationships.term_taxonomy_id = $wpdb->term_taxonomy.term_taxonomy_id) LEFT JOIN $wpdb->terms ON($wpdb->term_taxonomy.term_id = $wpdb->terms.term_id) WHERE ($wpdb->terms.name=”sounds-flavors” OR $wpdb->posts.ID IN(12345,12678)) AND $wpdb->term_taxonomy.taxonomy = ‘category’ AND $wpdb->posts.post_status=”publish” AND $wpdb->posts.post_type=”post” LIMIT 3 “; Take a look here: https://codex.wordpress.org/Displaying_Posts_Using_a_Custom_Select_Query Regards