Title: offset a category
Last modified: August 19, 2016

---

# offset a category

 *  [sinans11](https://wordpress.org/support/users/sinans11/)
 * (@sinans11)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/offset-a-category/)
 * Hi people
    Basically my problem lies here. query_posts(cat=3,4&showposts=8&offset
   =1
 * how can I change this code so that the offset query only applies to category 
   4 and not category 3. That is all posts in category 3 is shown but the first 
   post from category 4 is not shown (offset)
    please help

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/offset-a-category/#post-1261498)
 * You’d have to do two queries, one for cat 3 and one for cat 4.
 *  Thread Starter [sinans11](https://wordpress.org/support/users/sinans11/)
 * (@sinans11)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/offset-a-category/#post-1261508)
 * Hi Michael
    thing is I am displaying both of the categories images in the same
   place. How can i do what you say then?
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/offset-a-category/#post-1261510)
 * You’d need two ‘query’ loops, one to display category 3 posts, then one to display
   category 4 post.
 * Or use something like to merge your two query results into one:
    [http://coffee2code.com/archives/2009/04/18/inject-query-posts-v10-new/](http://coffee2code.com/archives/2009/04/18/inject-query-posts-v10-new/)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘offset a category’ is closed to new replies.

## Tags

 * [category](https://wordpress.org/support/topic-tag/category/)
 * [offset](https://wordpress.org/support/topic-tag/offset/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [MichaelH](https://wordpress.org/support/users/michaelh/)
 * Last activity: [16 years, 5 months ago](https://wordpress.org/support/topic/offset-a-category/#post-1261510)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
