WordPress plugin intelligence profile

Post Index Helpers

A variety of template tags related to the index/position of a post within a loop's listing of posts.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 6.8
Current version1.4.5
WordPress coverageTested up to WordPress 6.8
Minimum stackWP 2.8 · PHP —
Directory statusactive
Last directory update20 Apr 20251y ago
Active installations10Adoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Post Index Helpers version 1.4.5 as active, updated 1y ago and tested up to WordPress 6.8.

Overview

About this plugin

This plugin provides thirteen handy template tags that relate to the index/position of a post within a loop’s listing of posts.

Some of the template tags provided by this plugin relate to the position of the current post within the current loop:

  • c2c_is_first()
  • c2c_is_last()
  • c2c_is_at_index()
  • c2c_is_even()
  • c2c_is_odd()
  • c2c_get_the_index()
  • c2c_is_index_within()
  • c2c_the_index()

Other functions help you get a post (or posts) at a given position in the current loop:

  • c2c_get_post_by_index()
  • c2c_get_posts_by_index()

While the remaining three functions relate to index information about the loop in general:

  • c2c_get_last_index()
  • c2c_is_post_in_loop()
  • c2c_is_valid_index()

Please see the Template Tags section (in some places found under the Other Notes section) for descriptions of all the functions and their arguments.

Note that index counting begins at 0, which means the first item has an index of 0. An index of -1 indicates no posts were found.

Links: Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage

Developer Documentation

md. That documentation covers the numerous template tags provided by the plugin.

As an overview, these are the template tags provided the plugin:

  • c2c_get_last_index(): Gets the index number for the last post in the loop listing
  • c2c_get_post_by_index(): Get post based on specified index
  • c2c_get_posts_by_index(): Get posts based on specified array of indexes
  • c2c_get_the_index(): Get the index for the current post
  • c2c_is_at_index(): Is the current index at the specified index?
  • c2c_is_even(): Is the current post at an even position? (i.e. 0, 2, 4, …)
  • c2c_is_first(): Is the current post the first listed post?
  • c2c_is_last(): Is the current post the last listed post?
  • c2c_is_odd(): Is the current post at an odd position? (i.e. 1, 3, 5, …)
  • c2c_is_index_within(): Is the current post (or one at the specified index) within the bounds of a specified range?
  • c2c_is_post_in_loop(): Is the specified post within the current loop?
  • c2c_is_valid_index(): Is the specified index valid?
  • c2c_the_index(): Echo the current post’s index
WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • template tags
  • index
  • loop
  • position
  • post
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 6.8

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 6.8.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to6.8
Minimum requirementsWordPress 2.8 · PHP not listed
Update activity20 Apr 20251y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.