I am having a little problem showing child post listings.
When I select – for example – the link ‘bands’ from parent link ‘entertainment’ it tells me ‘sorry no posts’. Why is this?
This is my code: ‘ <?php $a = 1; $query1 = new WP_Query();$query1->query(‘posts_per_page=5&cat=’ . get_query_var(‘cat’)); ?>
<?php while ($query1->have_posts()) : $query1->the_post(); ?>’
What might I be doing wrong?
Thanks for any assistance.
- The topic ‘How do I show child posts?’ is closed to new replies.