Offset Recent Article on Homepage
-
I want to offset the recent articles that display on the homepage on a per category basis.
This code below offset all posts from all categories by any number you choose.
<?php
global $myOffset;
$myOffset = 10;
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
$wp_query->query(‘offset=’.$myOffset.’&showposts=5′.’& paged=’.$paged);
?>How can I offset the recent posts on a per category basis rather than offset everything?
Thanks
- The topic ‘Offset Recent Article on Homepage’ is closed to new replies.