Index Pages

Assign pages as the index page for WordPress custom post types, similar to the Posts Page.

Author:Doug Wollison (profile at wordpress.org)
WordPress version required:4.0.0
WordPress version tested:4.7.28
Plugin version:1.3.0.1
Added to WordPress repository:03-02-2016
Last updated:29-04-2017
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:https://github.com/dougwollison/index-pages
Total downloads:2 033
Active installs:60+
plugin download
Click to start download

The Index Pages system allows you to designate pages as the index page for a particular post type.

This allows you to have a custom title, text content, and other information displayed on your
post type archives, should your current theme support it.

For theme developers, the plugin offers some template functions for loading the post object for the
current index page (including the posts page), in a similar fashion to the_post();, to create things
like a customizable introductory banner that appears above the listing, using the index page’s data.

Designated index pages are flagged as such in the Pages manager, for easy recognition.

Usage Documentation

The Index Page assignment interface can be found under Settings > Reading. By default, all post types
registered with the has_archive argument set to true will be available for assignment.

For theme and plugin developers, you can register support for your custom post types like so:

IndexPages\Registry::add_post_types( $post_types ); // a single post type or array of post types

When an index page is assigned, it’s permalink will point to the associated post type’s archive, with
the page title updated appropriately.

For theme and plugin developers, you can access the index page’s post object with the following.

the_index_page();

This works exactly like the_post();, populating the $post variable with the index page’s data.


FAQ
ChangeLog