Categories

  • Access & Security 95
  • Administration 171
  • Advertisement 92
  • Audio & Video 66
  • Author & Content 99
  • Comments 96
  • Communication 110
  • Communities & Forums 84
  • Development 47
  • E-Commerce 76
  • Email Management 53
  • Events & Calendars 80
  • Language 25
  • Map & Weather 44
  • Migration & Conversion 28
  • Miscellaneous 254
  • Mobile 15
  • Photos 143
  • Plugins 260
  • SEO & Site Speed 118
  • Social 186
  • Theme Enhancement 169



  • Add this plugin to a List

    You need to be logged in to add this plugin to your list.

    List Pages Shortcode

    Add to List

    Introduces the [list-pages], [sibling-pages] and [child-pages] shortcodes for easily displaying a list of pages within a post or page. Both shortcodes accept all parameters that you can pass to the wp_list_pages() function with the addition of a class parameter.

    Example Usage

    List pages sorted by title

    [list-pages sort_column="post_title"]
    

    List pages but exclude certain IDs and set the class of the list to “my-page-list”

    [list-pages exclude="17,38" class="my-page-list"]
    

    Show excerpt (for pages excerpt support will need adding manually or via the Page Excerpt plugin)

    [list-pages excerpt="1"]
    

    List the current page’s children, but only show the top level

    [child-pages depth="1"]
    

    List the current page’s siblings and their subpages

    [sibling-pages depth="2"]
    

    Default Arguments

    The default values are the same as for the wp_list_pages() function except for title_li which defaults to nothing. If a class is not specified, a default class of either “list-pages”, “sibling-pages” or “child-pages” is given to the UL tag. In addition, the echo parameter has no effect.

    In addition to the wp_list_pages() arguments, you can also specify:

    • list_type (string) List tag. Defaults to <ul>.
    • exclude_current_page (int) Exclude the current page. Defaults to 0.
    • excerpt (int) Show the page excerpt. Defaults to 0.
    Rate This Plugin

    Please Login to Rate this Plugin!

    Function

    Feature

    Support

    0 Votes
    Not Rated Yet

    Wordpress.org Stats

    Ratings4.9
    Votes14
    Downloads125,722
    Last Updated1363 Days ago
    Published18 years ago

    Report Wrong Category!