Loop ignoring variable
-
Trying to set up columns on my front page. Code is working fine for first colum but not on second column in the loop.
Full code here: https://pastecode.xyz/view/6d734473
But the basic issue is here:
<?php if ($c==5 || $c==8){ echo "<div class='frontcolumn'>";}?>
There’s a $c++ earlier on in the loop. A front column div is being generated with the 5th post, but not the 8th one, and I can’t work it out!
Thanks for the help,
CThe page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Loop ignoring variable’ is closed to new replies.