WordPress.org

Ready to get started?Download WordPress

Profiles

srjm

Profile picture of srjm
  • Member Since: June 13th, 2009
  • Posted a reply to "Show post number", on the site WordPress Support Forums:
    Update on that: function Get_Post_Number($postID){ $temp_query = $wp_query; $postNumberQuery = new WP_Query('orderby=date&posts_per_page=-1'); $counter = 1;…

    5 years ago

  • Posted a reply to "Show post number", on the site WordPress Support Forums:
    function Get_Post_Number($postID){ $postNumberQuery = new WP_Query('orderby=date&posts_per_page=-1'); $counter = 1; $postCount = 0; while ($postNumberQuery->have_posts()) :…

    5 years ago