How am I supposed to generate dynamic rows with a CMS like WordPress?
-
Umm, you don't have nearly enough description of what you are trying to do, so I'll assume you are looping through posts, and have them all stored in the $posts
variable, and that the html is in the content
property of each $post
this is basically the only direction I can give you:
$i=0;
foreach ($posts as $post):
if ($i%2==0) echo '';
echo ''. $post->content .'';
if ($i%2==1) echo '';
$i++;
endforeach;