Alter the output of the wp_list_pages() function’s HTML. Add in your own classes, insert text into link title, add additional tags surrounding title. Top-level Parents and Children are set seperately for greater flexibility. You can also turn off parent links, useful when using collapsable menus.
Set default arguments in Settings Panel using
wp_list_pages_plus(); replacement function. Instead of adding commonly used arguments to your
wp_list_pages(); function, you can set these as defaults and update them easily without altering templates. The
wp_list_pages_plus(); function mirrors the
wp_list_pages(); function exactly and additional arguments may be added directly within the function call, direct arguments will also override default arguments for multiple location use and greater flexibility. Just edit your
sidebar.php template (or wherever your Page menu list is output) by changing
- Upload the
list-pages-plusdirectory to the
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Set the options in the Settings Panel
- Alter your template files to use
- Why aren’t the settings for the Override Arguments aren’t affecting my page menu?
You will need to alter your template files to use
wp_list_pages('args'). This is usually located within your themes
- How can I include only a couple of pages in my menu?
You can now switch between using an Exclude or an Include on the settings page.
- What else can I do with this?
wp_list_pages();arguments can be set within the function’s template call. Find your themes template file that contains the
sidebar.phpand edit the function like so,
wp_list_pages_plus('args=values');Available arguments can be found at wp list pages.