• Access & Security 95
  • Administration 172
  • 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.

    Flexi Pages Widget

    Add to List

    Flexi Pages Widget is a highly configurable WordPress sidebar widget to list pages and sub-pages. Can be used as an alternative to the default ‘Pages’ widget.


    • Option to display sub-pages only in parent page and related pages.
    • Option to select and exclude certain pages from getting displayed in the list. Alternatively, only certain pages can be displayed by using the ‘include’ option.
    • Option to include a link to the home page.
    • Other options include title, sort column/order, hierarchical/flat format, show date, show as dropdown.
    • Multiple instances of the widget. Unlimited number of instances of the widget can be added to the sidebar.
    • Instead of using the widget, the function flexipages() can be called from anywhere in the template. For the list of parameters that can be passed on to this function, refer Other Notes.
    • Widget options menu is internationalized. Please refer Other Notes for the full list of languages in which the plugin is localized and translation credits.


    Versions 1.5.5 and above supports localization. The localization template file (flexipages.pot) can be found in the ‘languages’ folder of the plugin. The resulting PO and MO files should go in the ‘flexi-pages-widget/languages/’ directory, and should be named in the format flexipages-xx_YY.po and files respectively. Where xx refers to the language code and YY to the locale. For example, the German translation files will have the name flexipages-de_DE.po and This xx_YY should be the same as the value you define for WPLANG in wp-config.php.

    An application like poEdit can be used to translate the plugin, or just translate the strings in the flexipages.pot file and send it to the plugin author. All translations sent to the author will be bundled with the next version of the plugin.

    As of the current version, Flexi Pages Widget is translated into the following languages:

    flexipages() template function

    Instead of using the widget, the function flexipages() can be called from anywhere in the template.



    (string) Sorts the list of Pages in a number of different ways. The default setting is sort alphabetically by Page Order.

    • ‘post_title’ – Sort Pages alphabetically (by title) – default
    • ‘menu_order’ – Sort Pages by Page Order. N.B. Note the difference between Page Order and Page ID. The Page ID is a unique number assigned by WordPress to every post or page. The Page Order can be set by the user in the Write>Pages administrative panel.
    • ‘post_date’ – Sort by creation time.
    • ‘post_modified’ – Sort by time last modified.
    • ‘ID’ – Sort by numeric Page ID.
    • ‘post_author’ – Sort by the Page author’s numeric ID.
    • ‘post_name’ – Sort alphabetically by Post slug.


    (string) Change the sort order of the list of Pages (either ascending or descending). The default is ascending. Valid values:

    • ‘asc’ – Sort from lowest to highest (Default).
    • ‘desc’ – Sort from highest to lowest.


    (string) Define a comma-separated list of Page IDs to be excluded from the list (example: ‘exclude=3,7,31’). There is no default value.


    (string) Only include certain Pages in the list generated by get_pages. Like exclude, this parameter takes a comma-separated list of Page IDs. There is no default value.


    (integer) Displays the sub-pages of a single Page only; uses the ID for a Page as the value. Defaults to 0 (displays all Pages). Note that the child_of parameter will also fetch “grandchildren” of the given ID, not just direct descendants.

    • 0 – default, no child_of restriction


    (integer) Displays those pages that have this ID as a parent. Defaults to -1 (displays all Pages regardless of parent). Note that this can be used to limit the ‘depth’ of the child_of parameter, so only one generation of descendants might be retrieved. You must use this in conjuction with the child_of parameter. Feed it the same ID.

    • -1 – default, no parent restriction
    • 0 – returns all top level pages


    • 0 – Do not show sub-pages. List only top level pages.
    • 1 – Show sub-pages.
    • 2 – Show only related sub-pages. A sub-page is listed only when the user visits the parent and sibling pages of the sub-page. Thus, this will display the top level pages, children and siblings of the current page, and siblings of the parent page.
    • 3 – Show only strictly related sub-pages. Similar to ‘2’ above except that siblings of parent page won’t be displayed when on a sub-page.


    (boolean) Display sub-Pages in an indented manner below their parent or list the Pages inline. The default is true (display sub-Pages indented below the parent list item). Valid values:

    • 1 (true) – default
    • 0 (false)


    (integer) This parameter controls how many levels in the hierarchy of pages are to be included in the list generated by wp_list_pages. The default value is 0 (display all pages, including all sub-pages).

    • 0 – Pages and sub-pages displayed in hierarchical (indented) form (Default).
    • -1 – Pages and sub-pages displayed in flat (no indent) form.
    • 1 – Show only top level Pages. Equivalent to ‘show_subpages=0’.
    • 2 – Value of 2 (or greater) specifies the depth (or level) to descend in displaying Pages.


    (boolean) Whether to display the items in the widget as list or dropdown.

    • 1 (True) – will display the items in dropdown format.
    • 0 (False) – default – will display the items as list.


    (boolean) Toggles the display of the generated list of links or return the list as an HTML text string to be used in PHP. The default value is 1 (display the generated list items). Valid values:

    • 1 (True) – default
    • 0 (False)


    • flexipages() will display the list with default options.

    • flexipages('echo=0') will return the list with default options for other parameters.

    • flexipages('echo=0&show_subpages=0') will return only top level pages.

    • flexipages('sort_column=ID&exclude=2,10,14') will display the list with items sorted in order of ID. The page IDs 2, 10 and 14 will be excluded.

    Rate This Plugin

    Please Login to Rate this Plugin!




    0 Votes
    Not Rated Yet Stats

    Last Updated425 Days ago
    Published10 years ago

    Report Wrong Category!