WordPress.org

Plugin Reviews

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.

37 reviews
Average Rating
4.8 out of 5 stars
You are currently viewing the reviews that provided a rating of 5 stars. Click here to see all reviews.
Making it work with Sidebar.php
By , for WP 4.2.2

The plugin works great for the default WP navigation menu features. On one of my sites, WP takes care of the menus, but the sidebar.php file is customized and the plug-in needed to be manually integrated into it.

If you are using a custom sidebar.php file, you can use the following snippets to filter out the excluded IDs.

$excluded_ids_arr = ep_get_excluded_ids(); // get an array of IDs that are excluded using the Exclude Pages plug-in ep_get_excluded_ids() function.

$excluded_ids = implode(",",$excluded_ids_arr); // get a string of comma separate IDs

Anywhere you call wp_list_pages, you can exclude pages as follows:
$myPosts = wp_list_pages(array('exclude'=>$excluded_ids,'echo'=>0));
I have more members in the parameter array but am keeping it brief here for simplicity.

If you are using get_children(), you will need to loop through the list of child posts and skip any of the excluded IDs. Here is a snippet to better explain:
$parent_child_posts = get_children(array('post_status'=>'publish', 'orderby'=>'menu_order', 'order'=>ASC, 'post_parent'=>$post->post_parent));

foreach ( $parent_child_posts as $parentChildPost )
{
   // skip excluded IDs
   if ( in_array($parentChildPost->ID, $excluded_ids_arr) )
   {
      continue;
   }
   ... more code that does something with the included IDs ..
}
Works Great!
By , for WP 4.2.2

Even though this plugin hasn't been updated for 3 years, it works great!

Still Working
By , for WP 4.2.2

For some reason menus couldn't be excluded on my site page. Still works.If you're here this is what you're looking for!

still makes sense
By ,

very happy with this one

Work Perfect
By ,

Work Perfect

Works Just Fine
By , for WP 4.1.1

Exactly what I needed.

is now being replaced by "Menus", yet very effective with large sites
By ,

this is one plugin makes it so easy to decide whether or not the pages are by default included in the menu or not, although, recently we've had the "menus" functionality where in you can define pages and include/exclude pages as you want, as part of the core!

Works for me with wordpress 4.0
By , for WP 4.0

Works perfectly for me even though not updated for 2 years.

It does exactly what it should :)
By , for WP 3.9.2

This plugin works. Even on the latest version of wordpress :)

Work Greate even on New version of WP
By , for WP 3.9.1

Worthy Plugin...

Serves the Purpose. No conflict too

You must log in to submit a review. You can also log in or register using the form near the top of this page.