• Hi all,

    I’m editing my category.php file and I’ve ran into a problem. Basically I have this code that I created for my Index, but I’m going to use it on the Cat page too.

    Code: <?php $recent = new WP_Query(array( 'tag' => 'Hot', 'posts_per_page' => '4', 'offset' => '1' )); while($recent->have_posts()) : $recent->the_post();?>

    I’m going to need to change ‘tag => hot’ to reflect the current category page. So cat => current, I know that isn’t the syntax, but that’s what I’m looking for.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Array by current category’ is closed to new replies.