Pagelist Inline Tags

From version 2.0 there is only a short code to be used to display any content list:

  • ipagelist: Used to display a list of pages or posts by tag or category.

Using [ipagelist]

The [ipagelist] shortcode have a required parameter and some additional optional parameters.

Required parameter

Have to be one of this:

  • page: To list child pages from a parent page must set the parent page id.
  • cat: To list posts from a category, must set the category id.
  • tag: To list posts with a tag, must set the tag slug.

Optional Parameters

Those are the optional parameters for [ipagelist]. Note that not all parameters are available for all kind of lists.

  • title: An string to be used as list title. For multi-word titles, enclose them in double quotes.
  • link: Set to 0 if you don't want the title to link back to the parent page, category or tag archive.
  • depth: Only when listing pages is the child tree depth. Defaults to unlimited depth. Set to 1 to show only the first level, to 2 to show first and second levels and so on.
  • num: Only when listing posts from a category or tag. It is the number of posts to list and defaults to 5.

Samples

  • Show a list of child pages for page with id 5: [ipagelist page=5]
  • Show posts from the category 134: [ipagelist cat=134]
  • Three Posts from category 134 with no link to category: [ipagelist cat=134 num=3 link=0]
  • Show posts tagged alkivia: [ipagelist tag=alkivia]
  • Show posts tagged alkivia and set the title to WordPress Plugins: [ipagelist tag=alkivia title=“WordPress Plugins”]

Deprecated Shortcodes

From version 2.0, the old tag codes are deprecated. It is highly recommended not to use this tag codes as them will be removed in some future version. Also it's recommended to replace this tag codes by the new [ipagelist] short code.

Deprecated tag codes are:
  • [pagelist] Used to show a list of pages.
  • [catlist] Used to show the last posts from a category.
  • [taglist] Used to show the last posts with a tag.
 
pagelist/tags.txt · Last modified: 2010/02/01 15:05 by jcanals
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Valid XHTML 1.0 Valid CSS Driven by DokuWiki