• Resolved fionagilbert

    (@fionagilbert)


    Morning all,

    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.

Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How do I show child posts?’ is closed to new replies.