/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# Standard Wordpress loop: $count = $wp_query->current_post + 1; # Custom loop using WP_Query: $count = $custom_query->current_post + 1;
# Standard Wordpress loop: $count = $wp_query->current_post + 1; # Custom loop using WP_Query: $count = $custom_query->current_post + 1;