Plugin Directory

WordPress Page Tree

Creates a expand/collapse tree for showing all your pages on your site or in your administration "pages" panel.

OK, so the page tree is useful in my admin area, but HOW do I display the tree on my site, for easier page navigation?

There are three ways. Simplest is to use the sidebar widget, if your template is widgetized. Simply drag the "Page tree" widget to where you want it - set its name and whether you want to display the tree collapsed or expanded by default, and if you want to show or hide the expand/collapse controls.

There is also a shortcode for including the tree in your pages/posts if you want to. The syntax is:

[pagetree]

... for a plain simple tree without controls.

The complete options are

[pagetree expand=0 show_controls=0 only_subpages=0 child_of=0]

... using the same attribute syntax as the function below.

Or you can use the pagetree_public function which lets you use the tree anywhere on your site:

<?php pagetree_public($expand = false, $show_controls = false, $only_subpages = false, $child_of = false); ?>

Defaults are "false" for all options, which gives you a "naked", complete collapsed page tree.

So, just use pagetree_public() for a simple, naked tree.

What does this plugin actually do?

This plugin simply provides an easier way for administrators/authors to navigate a large collection of pages in your WordPress installation. It adds a new submenu to your "pages" navigation menu which takes you to a list of all your published pages in a collapse/expand tree.

I can't see my unpublished/hidden pages!

Well, yes and no. The sidebar widget and template function only displays published pages, since it is meant for use on your public site. The admin tree displays ALL pages.

Requires: 2.5 or higher
Compatible up to: 3.2.1
Last Updated: 2011-8-18
Downloads: 42,828

Ratings

4 stars
4.4 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

100,1,1 100,2,2
80,5,4
100,2,2 33,3,1
100,1,1 33,3,1 100,2,2 83,6,5
0,9,0
40,5,2
100,1,1
33,3,1
0,1,0 100,1,1
0,1,0 50,2,1
100,1,1
100,2,2
100,1,1
100,1,1
100,1,1