This plugin adds a checkbox, “include this page in menus”, which is checked by default. If you uncheck
it, the page will not appear in any listings of pages (which includes, and is usually limited to, your
page navigation menus).
Pages which are children of excluded pages also do not show up in menu listings. (An alert in the editing screen,
underneath the “include” checkbox allows you to track down which ancestor page is affecting child pages
in this way.)
Download
Latest version: Download Exclude Pages v1.92 [zip]
Installation
- Upload
exclude_pages.phpto the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Create or edit a page, and enjoy the frisson of excitement as you exclude it from the navigation
Changelog
v1.92
- BUGFIX: Fix deprecated notice when WP_DEBUG is true, thanks hansfordmc
- Tested up to WordPress v3.3
v1.91 2011/08/26
- BUGFIX: Prevent notice from appearing, thanks Ray
v1.9 2010/6/16
- Tested with WP 3.2.1
- ENHANCEMENT: Detects the use of WP menus and advises the user accordingly
v1.8.4 2010/5/21
- LOCALISATION: Italian translation courtesy of Gianni Diurno
v1.8.3 2010/5/20
- LOCALISATION: Polish translation courtesy of Pawel, Siedlecki Portal Informacyjnie Najlepszy
- LOCALISATION: German translation courtesy of Meini, Utech Computer Solutions
v1.8.2 2010/5/14
- DROPPED SUPPORT FOR WORDPRESS VERSIONS PRIOR TO VERSION 2.7
- BUGFIX: Everything was reporting that it was excluded by an ancestor for some reason. Crazy. Fixed now.
- LOCALISATION: Added POT file! Woo hoo!
v1.8.1 2010/4/19
- BUGFIX: Check for existence of parent object before attempting to use it. (Thanks to Robert Kosara for the bug report.)
v1.8 2009/10/27
- BUGFIX: PHP 5.3 doesn’t like the fact that parameters marked as passed by reference as passed as value. Params now not marked as passed by ref.
v1.7 2009/7/29
- ENHANCEMENT: You can now turn the Exclude Pages functionality off in the admin area through use of a filter (this is mainly of advantage to other plugin and theme author).
v1.6 2009/6/8
- ENHANCEMENT: You can now turn the Exclude Pages functionality off before showing navigation which you want to be comprehensive (and show pages you’ve normally hidden). This is done with the new
<?php pause_exclude_pages(); ?>and<?php resume_exclude_pages(); ?>templates tags.
v1.51 2009/4/23
- FIX: Was throwing an error when $pages turned out not to be an array. Thanks to (Sandra)[http://www.vinyltangerine.com/] for reporting this.
v1.5 2008/11/03
- ENHANCEMENT: Now compatible with WP 2.7-beta1
- DOCS: Added a list of incompatible plugins
- DOCS: Added a list of incompatible themes
v1.4 2008/01/02
- ENHANCEMENT: Now compatible with WP 2.5
- FIX: Pages are also excluded from the “Front page displays:” > “Posts page:” admin menu. (Reported by Ed Foley) This plugin now checks if it’s within the admin area, and does nothing if it is.
v1.3 2008/01/02
- FIXED: Descendant (e.g. child) pages were only being checked to a depth of 1 generation.
- FIXED: The link to visit the hidden ancestor page from an affected descendant page was hard-coded to my development blog URL. (Reported by webdragon777)
- FIXED: Stripped out some stray error logging code.
v1.2 2007/11/21
- ENHANCEMENT: Child pages of an excluded page are now also hidden. There is also a warning message in the edit screen for any child page with a hidden ancestor, informing the person editing that the page is effectively hidden; a link is provided to edit the ancestor affecting the child page.
v1.1 2007/11/10
- FIXED: Pages not created manually using “Write Page” were always excluded from the navigation, meaning the admin has to edit the page to manually include them. Pages created by other plugins are not always included in the navigation, if you want to exclude them (a less common scenario) you have to edit them and uncheck the box. (Reported by Nudnik)
Hiya man. Your Exclude Pages plugin is wanderful, just one checkbox and WP blog stand fulli functional site. But which compatible Menu Dropdown WP plugin you suggest install together?
Thanks for the great plugin, Simon.
@Serj, try:
http://wordpress.org/extend/plugins/dropdown-menu-widget/
The Exclude Pages plugin is mentioned in the changelog.
As far as I can see, this Exclude Pages plugin is bundled with the Shailan Dropdown Menu Widget as from version 1.3.2
Thanks for the heads up Michael, I had no idea my plugin was getting bundled elsewhere… that’s cool!
Well, i was try install this plugin but in my theme it’s not work correct. Any other idea?
PS
Sorry for orphographic errors – dislike (hate) mashine translator )
If you are looking for advice on “Shailan Dropdown Menu Widget” then you’ll need to go elsewhere, as I didn’t make that plugin.
If you need advice on Exclude Pages then can you provide more detail about what didn’t work, please?
Exclude Pages work fine. I just need suggestion which Menu Dropdown WP plugin best use whis it.
http://wordpress.org/extend/plugins/dropdown-menu-widget/
Thanx dude. But, this http://wordpress.org/extend/plugins/dropdown-menu-widget/ don’t work fine whis my template. This link http://wordpress.org/extend/plugins/search.php?q=Dropdown+menu – give me more then 1000 plugins but i looking for advice just One of this.
Exclude Pages works fine! No problem, no question – beatiful
P.S. ??????? ?? ????? ??? ???? ??????????, ? ?????? ?? ???? ???????????? ???????? ?????????????, ???????? ?? ??????????? ?????????? )
Or search the plugin directory at WordPress.org
http://wordpress.org/extend/plugins/search.php?q=Dropdown+menu&sort=
“N.B. An ancestor of this page is excluded, so this page is too. Edit ancestor.”
I’m using the Thesis 1.7 theme and I’m getting this message on all my pages even new ones with no content. Clicking on ‘Edit Ancestor’ takes me to a page which tells me the page ancestor page doesn’t exist and maybe was deleted. Consequently no pages are showing on any nav menu.
Could you please tell me if there is a way to troubleshoot this?
Can you please check out the latest development version and let me know whether this fixes the problem for you? If it’s good, then I’ll release a new version.
Thanks!
Hi Simon,
I ma having the same issue as the poster above (5/11)…any help or advise on this?
are there any plans to expand the plugin so that there’s exclude from vertical menu and a second checkbox to exclude from horizontal menu? There are pages I want in the new vertical menu widget that I do not want to show up in the horizontal menu widget and vice versa.
Great plugin btw!
You probably want to wait for the new Menus functionality in WordPress 3.0, which will render this plugin unnecessary for many sites.
Hi,
I’ve downloaded the exclude page zip several times but get this when I try to install it
Unpacking the package.
Incompatible archive PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature
Thanks
Bill
Sounds like your first download got interrupted or corrupted, but was cached, Subsequent requests are simply serving you the broken zip from caching. Try emptying your browser cache and trying again. If you need to know how to do this google “[your browser name] empty cache”.
This plugin does not work with my k2 theme. I tried to do it manually with codes but my theme does not use wp_list_ code. I want to put a disclaimer on my site as well as a TOS and Privacy Policy and I can’t because of this.
Unfortunately there’s nothing I can do about this. You can wait for WordPress 3.0 which has built in Menus functionality and is very very near to release now!
Nice and useful plugin. But I believe the option “Include this page…” should not be selected by default since this plugin is called Exclude Pages.
Anyway is it difficult to hack the current code and have this not selected by default?
Hi Chrys,
I believe the plugin is called ‘Exclude Pages’ because that’s what it is supposed to do. You use it to exclude only pages you’ve selected. It’s not supposed to exclude all pages automatically which would require you to go around and individually include every page you did want.
(Otherwise, you’d have to call the plugin ‘Include All Pages’ or something ;D)
However, having an option to set the default how you want it makes sense too but I don’t have any idea what it would take to implement this in a future version or to hack the code yourself.
anyway, just my $.02,
Thanks,
Bill
Feel free to hack the code to make it do what you want… all WordPress plugins are GPL licensed for exactly this reason!
This plugin does not seem to work for removing the home page from the navigation.
Alex, you can edit it from your template (usually on header.php).
Thanks for the plugins, Simon.
Hi there,
Perfect plugin, thanks a lot! I do have some problems to use it with wordpress 3.0 Some server error occurs. Any plan to update the plugin to work perfectly with wordpress 3.0?
Thanks a lot!
This plugin awesome!!! Works like a dream! I’ve been looking for something like this for awhile. Thanks a lot!!
Plugin seems to not work in WordPress 3. Does not remove it from the navigation.
Any ideas?
Great plugin otherwise
Thanks
Dave
Thank you so much – just what I needed, this should be default in all wordpress admin editors!
Hello, For no reason, I don’t know why the plugin Eclude stop in my blog. it’s not appere any more in the page. I don’t know what to do. This is very usuful for me. Thank you for your answer soon. Bella
Hey,
Couldn’t find the disable box on my dashboard. I have the weaver child theme. Please help me locate the plugin. on my dasboard. What page is it on, I assumed it was on the “Edit Page
Im trying to uninstall in my WP but its not unistalling or deactivating.
What should I do?
Thanks a lot man.
Hi Simon
I can’t get exclude pages to work on my site. Using 3.0.1? with portaltheme. It’s driving me nuts. Any suggestions?
thanks
First of all would like to say thank you for creating a great plugin. I use it constantly in my client sites to make WordPress Themes appear to be more like typical websites. My question is that would like create my own plug but I don’t know where to start. The tutorials online seem to be either too hard to understand or to simple to be of any use. Your plugin seems to be do everything I would need my plugin to do. I know there are three things I would need the plugin to do. First add an admin panel on every page or post type. Second read and write settings to a custom table. Third allow the user to alter options within the admin panel. Thanks for any help that you are willing to provide.
Solo queria felicitarlos muy interesante su blog. Luego checan el mio
Thanks for your plugin. I am able to exclude page without fiddling with the php code.
However, I seems to have a problem.
My Exclude-Page Plugin was installed. But the plugin’s checkbox – “include this page in menus” vanished.
I am using theme generate with Artisteer running on WordPress 3.1
Thanks
I have the same problem as mryap. it just disappeared. sometime after the latest WP upgrade….any thoughts?
Not working with my Blog…
i am using WP 3.1
May be this is the reasn…
Also my page edit link looks like this…!!
http://telecomgyaan.com/wp-admin/post.php?post=2614&action=edit
is it a prob as well…
coz it should appear like
Hey Simon, this is just what I need but it wont show up on my Page Edit screen. File is where it should be and it’s Activated. Im using WP 3.0. Any help appreciated.
I’ve just installed this plugin. It doesn’t appear to work. I’m using WP 3.2.1. Any suggestions?
Just to clarify, the exclude pages checkbox is reset when I upload my changes. It doesn’t stick.
love your plugin – works well – what i want to do is pull out a list of all excluded pages and loop through it to create a custom menu.. Have you created this functionality in the exclude_pages.php
regards
oliver
I can not thank you adequately for the discussions on your site. I know you add a lot of time and energy into these and really hope you know how considerably I appreciate it. I hope I will do the identical thing for someone else at some point.
Hi, thanks for the great plugin. I’ve used it on a handful of websites now. I’d like to be able to select pages to not be shown in dynamically generated lists while still showing all the children pages. Is there any tweak that I can do to get that to work?
Simon,
I’ve used your exclude pages plugin on a clients site and it works great. Thank you!
The client has requested custom content on the page where you enter the password.
Is this possible, and how so?
Thanks in advance.
Steve