Return to Snippet

Revision: 26624
at May 4, 2010 10:11 by chrisdpratt


Initial Code
# Standard Wordpress loop:
$count = $wp_query->current_post + 1;

# Custom loop using WP_Query:
$count = $custom_query->current_post + 1;

Initial URL

                                

Initial Description

                                

Initial Title
Get Iteration Count in Wordpress Loop

Initial Tags
wordpress

Initial Language
PHP