You can display a list of pages on any post or page by using the short code epl (enclosed in square brackets [ and ] of course) on your page.

Page Parameters

The plugin uses the Wordpress function get_pages() to collect the pages to list and supports all of the parameters for that function. This plugin does change some of the defaults, which are listed below.

  • child_of » defaults to the current page
  • sort_order » options are ‘ASC’ and ‘DESC’, defaults to ASC
  • sort_column » defaults to ‘post_title’
  • hierarchical » not yet supported
  • exclude » list of Page IDs to exclude, defaults to none
  • include » list of Page IDs to include, defauls to none
  • meta_key » use only pages with a given meta_key, defaults to none
  • meta_value » use with meta_key to set the value to match, defaults to none
  • authors » include pages by these author IDs, defaults to all authors
  • parent » show only pages with this parent ID, defaults to -1
  • exclude_tree » page ID of page to exclude, including it’s subpages
  • number » how many pages to display, defaults to all pages
  • offset » how many pages to skip, defaults to 0

Display Parameters

In addition to the parameters above which determine what pages to display, the following parameters change the output from the short code. Any of the “tags” below can be turned off, or not displayed, by setting the parameter value to 0 (zero).

  • blocktag » HTML tag to use before the full list of pages, defaults to ‘ul’
  • blockclass » class for the block, defaults to ‘page-list’
  • itemtag » HTML tag to use before each page item , defaults to ‘li’
  • itemclass » class for each page item, defaults to ‘page-list-item’
  • titletag » HTML tag to use around the page title, defaults to none
  • titleclass » class to use for the title tag,  defaults to  ‘page-list-title’
  • target »  target for the page link, defaults to none
  • showcontent » set to “1″ to show page content in the list, defaults to 0 (false)
  • contenttag » HTML tag to use around the content, defaults to  ‘p’
  • contentclass » class to use for the content tag, defaults to ‘page-list-content’
  • showexcerpt » set to “1″ to show a page excerpt, defaults to 0 (false)
  • excerpttag » HTML tag to use around the excerpt, defaults to ‘p’
  • excerptclass » class to use for the excerpt tag, defaults to ‘page-list-excerpt’
  • excerptlength » length of the excerpt to use, defaults to plugin default setting
  • excerptmore » text for the “read more” link for longer excerpts, defaults to plugin default setting
  • beforelink » text or seperator to use between excerpt and link, defaults to blank
  • morelink » 0/1 flag to instruct plugin to link the more link to the page, defaults to 0 (false)

Custom Fields

To provide even more control over your page lists, there is currently one custom field you can use to alter the output of this plugin:

  • epl-text: If this custom field exists on any of the pages listed by this plugin, and you are displaying page excerpts, the value of this field will be used in the list. This will allow you to write custom lead in text rather then use the existing content.

More Information

AKPC_IDS += "267,";

Popularity: 5%