Notice: Undefined variable: i in debug mode
-
Hello,
i get Notice: Undefined variable: i on line 19 which reference to this code
<?php if (have_posts()) : while(have_posts()) : $i++; if(($i % 2) == 0) : $wp_query->next_post(); else : the_post(); ?>
any ideas how to fix that?
Thanks in advance
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Notice: Undefined variable: i in debug mode’ is closed to new replies.