sinans11
Member
Posted 3 weeks ago #
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
You'd have to do two queries, one for cat 3 and one for cat 4.
sinans11
Member
Posted 3 weeks ago #
Hi Michael
thing is I am displaying both of the categories images in the same place. How can i do what you say then?
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/