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.
Features:
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 flexipages-xx_YY.mo
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 flexipages-de_DE.mo
. 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:
bg_BG
) by Team Ajoftbe_BY
) by Alexander Ovsovca
) by Robert Buj Gelonchcs_CZ
) by Tomáš Hubkada_DK
) by Morten Elmde_DE
) by Frank W. Hempelfil_PH
) by Morten Elmfr_FR
) by Pierre Sudarovichga_IE
) by Ajeethi_IN
) by Ashish Jha, Outshine Solutionsid_ID
) by Bejanait_IT
) by Gianni Diurnolt_LT
) by Nata Strazdanl_NL
) by Renepl_PL
) by Mariusz Jackiewiczpt_BR
) by Tzor Morero_RO
) by Michail Bogdanovru_RU
) by Fat Cowsr_RS
) by Mike Ariassv_SE
) by Ove Kaufeldtta_IN
) by Srinitr_TR
) by Hakan Demirayuk_UA
) by wpp.pp.uazh_CN
) by Kaijia FengInstead of using the widget, the function flexipages() can be called from anywhere in the template.
sort_column
(string) Sorts the list of Pages in a number of different ways. The default setting is sort alphabetically by Page Order.
sort_order
(string) Change the sort order of the list of Pages (either ascending or descending). The default is ascending. Valid values:
exclude
(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.
include
(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.
child_of
(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.
parent
(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.
show_subpages
hierarchy
(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:
depth
(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).
dropdown
(boolean) Whether to display the items in the widget as list or dropdown.
echo
(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:
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.
Download & install the zip archive
The plugin package installer can be downloaded from the WP2E project tab called “code”.
1 – Select the version to download if this option is available otherwise the “latest” version of the main plugin will be used.
2 – After downloading the zip archive install the plugin package installer in you local environment and activate the script from the plugin list.
3 – Under the section “Plugins” of the admin dashboard you should see a new “Dependencies & Licenses” link. Follow the instructions from this panel to finalize the installation of the missing dependencies.
Tips: Use the WP2E panel to add/suggest new dependencies to the local installation. Press F5 in the list of dependencies if the changes are not displayed right away.