• iigor

    (@iigor)


    <?php
    $temp = $wp_query;
    $wp_query= null;
    $wp_query = new WP_Query();
    $wp_query->query(‘&paged=’.$paged);
    ?>
    <?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>

    This is for home page right?
    Now i want to implement this to categories in archive.php but i dont know how. When i enter code above to archive.php it shows home page posts (all posts) in every category.
    How to make it work?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘WP query categories?’ is closed to new replies.