Notice: Undefined property: wpdb::$current_post What can be wrong?
I’m working on a WordPress site and I use the following code to show posts in two columns on archive and category pages: <div id=”post-<?php the_ID(); ?>” <?php post_class( 0 === ++$GLOBALS[‘wpdb’]->current_post % 2 ? ‘grid col-340 fit’ : ‘grid col-340’ ); ?>> With debug set to “true” I got the following notice: Notice: Undefined … Read more