Re:Why WordPress theming sucks
by byoung2 on Wednesday September 22, 2010 @04:56PM
(#1717491)
in fact it would be a (relatively) simple additional theme style that could co-exist with the existing PHP themes
In the process of adding a templating system to Wordpress you would come across many instances where you'd wish that instead of having to bother with structures like:
<?php
if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
...add posts to an array, then assign to template...
The developers had just used an object model that let you do something like:
In the process of adding a templating system to Wordpress you would come across many instances where you'd wish that instead of having to bother with structures like:
The developers had just used an object model that let you do something like: And then access them in the template like this: