WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Exclude Pages

This plugin adds a checkbox, “include this page in menus”, uncheck this to exclude pages from the page navigation that users see on your site.

Advanced Usage

It is possible to temporarily pause and resume the effect of Exclude Pages by using the new <?php pause_exclude_pages(); ?> and <?php resume_exclude_pages(); ?> templates tags. The following code will show a list of all pages in your site, even those normally hidden:

<?php pause_exclude_pages(); ?>
<?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>
<?php resume_exclude_pages(); ?>

You can also get an array the IDs of the pages which are excluded by calling the function ep_get_excluded_ids();, you can then use these IDs as you wish (e.g. feed them into raw MySQL queries).

Note to other plugin authors:

The plugin does not operate on wp_list_pages while the user is on an admin page, if this is an issue you can take advantage of the ep_admin_bail_out filter and create a filter function which returns false to allow Exclude Pages to operate in the admin area.

Another note:

If your plugins or themes don't use the standard WordPress functions to create their menus then they won't work. To get them to work you will need to track down the bit of code in the theme/plugin which gets the pages and change it to apply the filter "get_pages" (I cannot be responsible for any unforseen effects of the changes you make, so please test thoroughly). The change to getting pages will probably look something like this:

$pages = apply_filters( 'get_pages', $pages );

Please contact me if you're completely stuck and we can discuss possible solutions.

Exclude pages is incompatible with:

Requests & Bug Reports

I'm simply noting requests & bug reports here, I've not necessarily looked into any of these.

None!

Requires: 2.2.3 or higher
Compatible up to: 3.4.2
Last Updated: 2012-6-13
Downloads: 909,526

Ratings

4 stars
4 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

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

100,1,1
100,1,1
100,2,2
100,4,4 100,4,4
100,10,10
67,6,4
0,1,0 82,28,23 0,1,0
95,19,18 71,7,5 100,1,1 100,5,5
100,3,3 88,17,15
79,33,26
100,1,1
86,7,6
100,2,2
100,2,2
93,27,25
75,8,6
100,5,5
100,5,5
67,6,4
70,10,7 86,22,19 100,4,4
100,6,6
90,21,19
100,2,2
100,4,4
100,8,8
80,15,12
75,4,3
71,14,10
100,4,4
83,6,5
33,3,1
100,2,2
100,3,3
40,5,2
100,1,1
100,2,2
33,3,1