Unable to get posts with category on my page
add in standard WordPress post specific template tags here eg. the_title(), the_permalink, the_content, the_excerpt etc. endforeach; Like that comments says, call the function you need to display the title. The category argument appears to represent the category ID, not the slug. Try using category_name instead. [php] $myposts = new WP_Query(‘posts_per_page=5&category_name=basics’); while($myposts->have_posts()): $myposts->the_post(); // your output … Read more