Odd / even
-
Hello there,
I am using the following code block in the repeater template – it pulls in a custom post type. My PHP adds an odd or even class into the wrapper div depending on requirement, which works fine.
The odd thing is that the first Load More post does not add the odd/even class into the first post, but does with subsequent posts.
<div class=”event <?php echo $odd_or_even; $odd_or_even = (‘odd’==$odd_or_even) ? ‘even’ : ‘odd’; ?>”>
// Other guff
</div>You can see the page working here: https://adbirds.pointblank.ie/events/
Do you have any idea why that first class is not being added?
Many thanks,
Spencer
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Odd / even’ is closed to new replies.