2
votes
Accepted
post loop with different design depending on post
Your $count++ needs to be after your endif statement. It's not counting up because your counter is always at 0 which means you're always in your "if" portion of your statement not your &...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
posts × 5968custom-post-types × 573
categories × 573
customization × 466
wp-query × 463
php × 404
pages × 397
loop × 386
plugins × 323
functions × 241
query-posts × 197
permalinks × 191
images × 187
query × 178
custom-field × 160
post-meta × 150
filters × 135
pagination × 133
tags × 132
templates × 127
author × 120
get-posts × 118
database × 117
theme-development × 113
comments × 109