Tag: loops
-
WordPress loops: with_posts() is my way of dealing with them
One of the most boring, cumbersome and dangerous things with WordPress is getting and working with posts in custom loops. A common situation is like this: That’s a bit cumbersome I think. Do I really need to do that while-thingie, that the_post()-method-thingie and that wp_reset_postdata()-thingie each time? It feels a bit… repetitive. And dangerous, since…