Count posts in query
-
I’m running a query that’s selecting a bunch of posts. I’d like to be able to put a class in the containing div for each post that has an integer that increases with each post in that loop.
So essentially the classes would be post1, post2, post3, post4, etc. and I could therefore target them with a stylesheet.
Any thoughts?
Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Count posts in query’ is closed to new replies.