Tag: generators

  • Alternative Post Loops

    We all know the standard post loop in every template, but what if we did something slightly different? Lets begin with the standard main loop we all know: There’s a lot of boilerplate there, what if we could reduce it down? Lets try using a feature of PHP 5 called Iterators: Put the class in…