SimplyExclude Plugin for WordPress

April 27th, 2008 @ 8pm : 216 comments : Socialize This
Filed Under: Tags: , , , , ,

Have you ever been working on a client WordPress project, or maybe your own blog and needed to exclude a Post category from the Front page? Or needed to exclude a Page from being included in a Search? Keep reading.

Over the past year I’ve worked on twenty different client projects. Each one a little similar yet each one a little different. On most the client wanted only a certain category listed on the front page. After many checks on the different versions of WordPress, I’ve not found a ’standard’ way of doing this via the default WordPress admin interface. Sure on the Options -> Reading page you can select a Page or Latest Posts to display. But if you need to limit the display on the Front page to say just the News category you are out of luck.

One solution that works very well is to hook into the WP query object to intercept the ‘action’ in WordPress. All it takes is a simple function and filter added to your theme’s function.php file. Something like the following.

1
2
3
4
5
6
7
8
9
10
// Used to limit the categories displayed on the home page. Simple
function myHomePostsFilter($query)
{
   if ($query->is_home)
   {
      $query->set('cat','1');
   }
   return $query;
}
add_filter('pre_get_posts','myHomePostsFilter');

If you are not familiar with WordPress filters let me provide some overview. The function takes a single parameter, This is the reference to the WP Query object (see /includes/query.php from the WordPress engine code). Don’t worry about the details as you will not be calling this function directly. This function will be called when WordPress is preparing a query for some display of information via another function call. Inside the function you will see the ‘if ($query->is_home)’. The ‘is_home’ is a built-in WordPress action. for Categories there are 5 total. They are ‘is_home’, ‘is_list’, ‘is_search’, ‘is_feed’ and ‘is_archive’. In our example above I’m only concerned with the ‘is_home’. So if the query is being built for the Home/Front page the if is true so the next line is executed. The next line ‘$query->set(‘cat’,'1′);’ sets the query category to the one cat_id I’m interested in. For the example this is cat_id=1. If needed I could have added more than one category as in ‘$query->set(‘cat’,'1,5,15,36,285′);’. I could also exclude categories from the category list simply by preceding the cat_id with a minus as in ‘$query->set(‘cat’,'-1, -16, -32′);’. The next line returns the query back to the calling function. Then end of function. So far this is just a standalone function. Now we have to tell WordPress we want it to hit our function. This is the last line. A filter in WordPress can be thought of as a ’subscribe’ action. The first parameter of the filter. Tells WordPress you want to subscribe to a certain action. In our case this is ‘pre_get_posts’. See this Codex page on Custom Queries. Scroll down to the section header ‘Category Exclusion’. Our filter basically tells WordPress ‘before you run the query hit our function first’. This give our function to massage the parameters to adjust the query. Done. This works for most versions of WordPress 2.x up to the latest and greatest (2.3.1 as of this entry). Pretty simple.

But sadly this cat_id is hard-coded into the functions.php file. So if this is your blog and you have control of the admin keys to the kingdom you can stop reading. I mean it takes all of two seconds to adjust the value of the cat_ids you wish to include/exclude. But what if you are knocking out a project for a client. A client you don’t really want to hit you up every time they need to exclude/include a category from some WordPress action like ‘keep the category X from showing on the Home page’. You have a choice. You can document for the user how to make edits to the functions.php file and hope they don’t somehow screw the code up.

Or you can look for some plugin that will do this or you. I can tell you I’ve looked through various plugins. Only really found one that came close to making this somewhat automated. And that plugin stopped working at WordPress 2.1. Something about the very complicate queries it was building. After reading through 300 line of it’s code just for the query logic I dropped it. I mean the 8 lines of code I provided above are really all you need for the logic portion to include/exclude cat_ids. Why go through the twisted query logic that didn’t run until after the page was loaded. This in effect caused two queries to be executed.

So I started writing my own. Something simple. I just wanted a list of the categories and the available options or WordPress ‘actions’. Let the user select the action for the category and go. I’ve produced something functional. It’s in the very early stages of work. I’ve also included a section for Pages. for Pages I’ve only worked through the logic for the ‘is_search’ action. For both Categories and Pages the user has the option of including or excluding for the actions.

Here is a screenshot of the SimplyExclude Category admin page. It’s the same for the Pages but just for search action.

View of SimplyExclude plugin admin page for categories

So download the SimplyExclude Plugin for WordPress v0.1. It’s version 0.1 0.2 but I plan adding more bling soon. I’ve tested this on the latest 2.3.1 engine only. If you are running this and have trouble please feel free to contact me for help.

Update

After entering this post and sending a similar response to someone on the wp-hackers list it occurred to me that for Pages there should be an option on the Page editor that allows the exclusion of the page from the Search actions. So took some time this evening to update the plugin to version 0.2 (W00t!). So not only will the Pages be listed under the plugin’s options. But along the right sidebar on the Page editor look for the ‘Exclude from Search’ dropdown option. Both options update the same information.
See the screenshot below for what it appears like.
SimplyExclude Plugin Page Options

Download SimplyExclude Plugin for WordPress v0.2

Update 2008-04-27

After some comment I took another look at the plugin code. Seems I provided the version for WordPress before 2.3. The new version now works all the way up to WordPress 2.5.1. Also, I’ve relabeled ‘List’ to ‘Archive’. I’ve also added logic for tags inclusion/exclusion. This works the same way as Categories. The tags admin menu only works under WordPress 2.3 and higher.

Download SimplyExclude Plugin for WordPress

Also upcoming is a better Category and Tags display listing. I’ve received some comments that users want to see the display nested similar to other parts of the WordPress admin interface.

Update 2008-07-16

Seems some of the WordPress 2.6 changes do in fact effect the way the plugin stores it’s options. I have a fixed version but due to technical (or accounting) I’m having trouble updating the plugin into the main repository. You can download version 1.7.1 here. I’ll update the plugin into the repository when WordPress gets things worked out.

simply-exclude-v171

You can leave a response, or trackback from your own site.

216 Responses to “SimplyExclude Plugin for WordPress”

  1. HeavyGod Says:

    Really good and really interesting post. I expect (and other readers maybe :) ) new useful posts from you!
    Good luck and successes in blogging!

  2. Nicole Says:

    Are you currently accepting advertising on your website codehooligans.com?

    Thank you,

    Nicole
    Marketing Manager
    ZTMC, INC.

  3. Jhb Says:

    Hi,

    Thanks for your plugin working great !

    Though, i can’t get the exclude from list function to work ; it doesn’t change anything wheter i exclude a category or not.

    Btw, you may change the version of the plugin ;)

    Jonathan

  4. Robert Says:

    this plugin does not appear to exclude categories from WP 2.3.2. I am using a theme that is widigitzed, perhaps that is why.

  5. Paul Menard Says:

    Thanks for the reply Robert. I’ll check the plugin. It should work as nothing has really changed since 2.3. But I’ll verify some things. Also, you are write the theme may be the issue. What theme are you using?

  6. Robert Says:

    I also notice that some of my categories are not showing up under simply exclude, what is up with that?

  7. blog.eppenga.com » Blog Archive » RSS Feed enhancer for Siteframe Says:

    [...] in a certain category but I did not wanted to show that category on my blog frontpage. Using the SimplyExclude Plugin I was able to exclude this category from my [...]

  8. Scot Hacker Says:

    Hi – Looks like this plugin isn’t appearing in the admin in WP2.5. Any chance of an update to get it working? Thanks!

  9. Scot Hacker Says:

    I’m also trying the functions.php approach in 2.5 but can’t get that working either. To exclude a page from search results, shouldn’t this work?

    if ($query-> is_search)
    {
    $query->set(‘page’,'-85′);
    }
    return $query;

  10. Paul Menard Says:

    Thanks for both comment Scott. I’ve not had a chance to review the plugin under WP 2.5. But good question. I have some work planned on it for this weekend. So look for a new version coming early next week. Thanks again.

  11. SimplyExclude Plugin for WordPress | CodeHooligans Says:

    [...] SimplyExclude Plugin for WordPress | CodeHooligans Uncategorized [...]

  12. Excluindo categorias da página inicial e do feed | Rodrigo Flausino Says:

    [...] desativar o plugin, para ver o que estava acontecendo e procurar uma alternativa, até encontrar o SimplyExclude Plugin, que funcionou [...]

  13. iPeat » Blog Archive » Category Visibility Update Says:

    [...] recent comment on my site it seems there is another option out there for Category Visibility called Simply Exclude.  It looks like he is still having some bugs but his system is a little slicker than mine and it [...]

  14. Paul Menard Says:

    Scot Hacker »

    I just actually looked at the code you pasted into the comment. WordPress does not support the ‘page’ option via the ’set()’ function. This really only works for ‘cats’. To exclude page you should either use my plugin (now updated to 1.2) or install the Search Everything plugin, http://wordpress.org/extend/plugins/search-everything/

  15. Melisa Says:

    thanks a bunch. your freakin’ code pasted in the post broke my site.

  16. Paul Menard Says:

    Melisa »
    What? What version of WP are you running? What other plugins do you have activated? What do you mean ‘code pasted in the post’? there is nothing you should have pasted in. I’m confused. Give me some details and I can resolve this.

  17. iPeat » Blog Archive » Category Visibility Update Says:

    [...] relieve is here in the form of a mashup up Simple Exclude by Paul Menard  and the List feature of Category Visibility by iPeat this is not an official [...]

  18. Scott Says:

    This is exactly what I’m looking for. Any idea when the issue with the plugin not showing up in the 2.5.1 admin panel might be resolved?

    Cheers

  19. Paul Menard Says:

    Scott »

    Thanks for the comment. I just tested this under a fresh wp 2.5.1 install on my laptop. I have no problem seeing the plugin admin panel (Settings -> Simply Exclude). Also for Pages there is an inline content box similar to Page Template, Page Order, etc. names ‘Simply Exclude’.

    Are you not seeing the panel at all? Please make sure you have the correct version of the plugin. I had my own confusion with some zip files. The official version of the plugin can be pulled directly from the WordPress plugin repository http://wordpress.org/extend/plugins/simply-exclude/. I think the version from my site were wacked.

    If you are still having issues please let me know. And please if possible send me a list of all you other plugins. So that I can setup a similar environment on my local system to make sure there are no plugin conflicts.

    Thanks.

  20. Vlad Says:

    Want issues? I have one :(
    Today I’ve install subject plugin on my WP 2.5.1 and have a PHP error on search page (on search attempt):
    Warning: Invalid argument supplied for foreach() in x:\home\wp\www\wp-content\plugins\simply-exclude\simplyexclude.php on line 710 .

    This error appears on deafult skin with no other pugin activated

  21. Paul Menard Says:

    Vlad »

    Thanks for the issue Vlad. I’m actually working on the plugin as I write this email. I’ll see if I can patch the error. I’ll post back where you can download a new version. I would appreciate you testing this before I submit to the WordPress repository.

    Also, can you advise did you setup any page excludes?

  22. Vlad Says:

    No, I catch this bug without any exlcudes

  23. Vlad Says:

    Paul, I’ve recieved your mail and replace plugin but unfortunately error is in his place

  24. Theo Says:

    It’s a great plugin!! Thanks a lot!!

  25. Oli Says:

    Hi Paul,

    Thanks for a great plugin. I’m having a few issues with the excluding of page from the search

    I have a page with photos that have titles – these are photos that are used on separate posts on the site. When I search at the moment i.e. ‘Joe Blogs’, I get two results, back – the page and the post that this photo is connected to.

    Having told your plugin to exclude the specific page, I still get both.

    Do you know why this might be happening? Would certain permalinks affect it? My site is http://www.keylockmanagement.com

    Thanks in advance!

    Oli

  26. Paul Menard Says:

    Oli »

    Hmm. It should exclude correctly. I’ll look into the Pages code over the weekend.

  27. Oli Says:

    Thanks.

    After a bit of testing, I realised that it’s searching the image data – title, caption, link and permalink of the image.

    My permalinks are structured as ../persons_name – I have linked the thumbnails of the images on the Page to this – so I guess when I search persons-name, it sees the permalink, plus the title of the image on the page and the post and gives me both results.

    I hope that makes some sense!

  28. Stéphane Says:

    Hi! Great plugin, I really appreciate your work. I’m having a bit of a problem with the search function, however.

    When I try to search I get the following error:

    Warning: Invalid argument supplied for foreach() in /simplyexclude.php on line 710

  29. Paul Menard Says:

    Stéphane »

    Thanks. I patched this problem reported last week. Can you please download a fresh copy of the plugin from http://wordpress.org/extend/plugins/simply-exclude/ and give it a go. If you are still seeing the issue please let me know and I’ll look into it. Thanks again.

  30. Stéphane Says:

    Thanks! It’s working fine now. I thought I was using the most up to date version since it was also labeled 1.5.

  31. Paul Menard Says:

    @Stéphane:

    That is totally my fault. I was working on some enhancements to the plugin and received another user’s comment similar to your about the PHP warning. So I quickly patched the current version but didn’t update the version number.

  32. kyanh Says:

    what an excellent plugin. thank you for your great work!

  33. Adrian Says:

    Great plugin. I may have found a possible bug. When I am in the wordpress admin doing a search for a keyword in posts or pages I get no results. When I deactivate this plugin the search works again. Can someone else duplicate this behavior and recommend a way to correct the problem? Thanks.

  34. Paul Menard Says:

    @Adrian:

    It’s funny because I was hit with that ‘bug’ myself today working on a client site. Good catch. I’m working on a fix to disable to plugin function when using admin-side searches.

  35. Cynthia Says:

    I don’t see all my tags or categories listed. I have a few I want to exclude, but they don’t seem to be appearing on my settings section. Thanks

    C

  36. Webmasterdays » Blog Archive » SimplyExclude Plugin for WordPress | CodeHooligans Says:

    [...] SimplyExclude Plugin for WordPress | CodeHooligans [...]

  37. Juno Says:

    Great plugin – only I have a question: How can I get the comments for a certain post or page to be excluded from rss and search as well? Right now that doesn’t seem to work.

  38. Paul Menard Says:

    @Juno: Thanks for the comment. The current version of the plugin does not directly filter comments. It’s something I’ve not thought of. I recently added author filtering so maybe comment filters are next. Look for it in the next release. May be 3-4 days.

  39. Juno Says:

    Brilliant! I’ll be waiting patiently. It’s great to have a plugin that gives you so much control over your blog-privacy. :-)

  40. dave Says:

    Hi Paul,

    Neat plugin, but I have a question. But for some reason the options for excluding from “lists” (like in the sidebar) is completely missing from the interface. Did you remove this functionality? I hope not, because that’s what I really needed.

  41. Paul Menard Says:

    @dave: You must have upgraded from an old version. The original plugin used the name ‘Lists’. This was incorrect as it confused many users. The correct name was ‘Archive’. Archives as you might be aware are for categories, tags and authors. The functionality between the two names is the same in regards to the plugin.

    If I’m wrong please let me know. I’ll be working on the plugin this week to extend it’s functionality to comments.

  42. dave Says:

    Paul,

    Actually, this is the first time I’ve tried using your plug-in. And it’s quite nifty.

    But when I refer to lists I’m talking about the screenshot above in your blog entry just before your first UPDATE. It shows 5 action names, and describes the “Lists” action as “Visibility on the list of categories on the sidebar.” But when I installed your plugin, there are only 4 action names. “Lists” is missing.

    I was just looking for an easy way to exclude certain categories from appearing in my drop down list in the sidebar on my front page. That description seemed to fit the bill.

  43. Sam Says:

    Hi Paul,

    Thanks for the great plugin, it was just what I was looking for.

    Quick problem though, I have a category called “Site News”, I’ve set it to be excluded from searches.. but it isn’t. The posts still turn up.

    Do you have any ideas as to what I might be doing to cause this?

    Thanks in advance!

  44. Paul Menard Says:

    @Sam: Hmm. It should work as advertised. Can you do 2 things for me (ok maybe 3).

    1. Make sure you are running the latest version (1.7) downloaded from http://wordpress.org/extend/plugins/simply-exclude/

    2. Give me a list of all other active plugins on your site.

    3. Double check your settings for my plugin.

  45. Sam Says:

    Sure thing Paul, thanks for the response.

    However, the problem with it displaying in the search results I’ve now managed to resolve (I had some code that was clashing with the plugin), but now I have another problem, whereby it’s suddenly started appearing in the RSS feed!

    To answer your questions:

    1. Yes am running 1.7
    2. Currently running: Admin Drop Down Menu, Author Highlight, cforms, Google XML Sitemaps, Gravatar, SEO Title Tag, ShareThis, subscribe2, wp-pagenavi, wp-polls, wp-print, and WP2.3 Related Posts.

    3. I’ve doubled checked all settings

    Thanks again!

  46. Mathias Says:

    Hi! Superb plugin, but major problem: after first usage (excluding some categories), the posts are listes in inverse order (ascending, oldest first). I don’t see any option in wordpress to change this. Do I need another plugin to fix this?

  47. zaistniejwsieci Says:

    Why this plugin doesn’t work on wp_get_archives () function?

  48. louis Says:

    thank you
    great plugin,

  49. Jonathan Halter Says:

    I am using a plugin called AJAX Calendar: http://urbangiraffe.com/plugins/ajax-calendar/ , and it does not honor the excludes defined in Simply Exclude. Is there a way to get the excludes excluded in this (and other) plugin’s custom query?

  50. Simon Says:

    I’m trying out this plugin, but everytime I exclude something it messes up the order of the posts on the front page putting them in oldest post first instead of newest post first.

  51. WPCandy - WordPress Themes, Plugins, Tips, and Tricks — Plugins We Use Says:

    [...] Simply Exclude [...]

  52. Wordpress » Blog Archive » Exclude Category from a page Says:

    [...] Simply Exclude Plugin or Advanced Category [...]

  53. Paul Menard Says:

    @Simon:

    This is the second time someone commented about the issue. The first poster was running on a Russian site.

    The details of the plugin are very simple to hook into the WP category/tag filtering. I’m not directly changing the SQL used by WP. I’m simply setting a value of the category to exclude. You can do the same if you have any coding knowledge. Checout the simple section of code at the top of my original post http://www.codehooligans.com/2008/04/27/simply-exclude-plugin/

  54. Paul Menard Says:

    @zaistniejwsieci: Good guestion. The ‘Archive’ as defined by the API I’m hooking into is not the function wp_get_archive() but instead the archive URL as in http://www.codehooligans.com/2008/05/

  55. Paul Menard Says:

    @Jonathan Halter: I’ll need to look at the plugin you mentioned and try to externalize n API or something. Good comment. Thanks.

  56. fym Says:

    I use a Plugin (FH-More Killer) for showing the full post in the feed no matter if a ‘more’-Link exists. After activating your plugin to exclude a category (on the blog itself as well as in the feed) suddenly the ‘more’ links show up again. Any idea how I can prevent this from happening?

  57. Paul Menard Says:

    @fym: Well I’m really scratching my head. Are you somewhat of a coder? Can you try something for me?

    As part of your theme you should have a file named functions.php. This contains misc. functions needed by your theme. Edit this functions.php file and follow the instructions http://zeo.unic.net.my/notes/exclude-category-in-wordpress/ Be sure to update the category values in the 3rd line ‘$query->set(‘cat’, ‘-5′);’ to YOUR category ID.

    function exclude_category($query) {
    if ( $query->is_feed ) {
    $query->set(‘cat’, ‘-5′);
    }
    return $query;
    }

    The above function is basically how my plugin works. I’m just providing a nice interface so you don’t need to edit the functions.php file. Also, please disable my plugin on your site and run a test. Are you still getting the more links?

  58. fym Says:

    Yeah, “somewhat” of coder.

    So, okay. I tried it now on the online blog and it seems to work. Before I just tested it locally, so it seems there was and is something not quite right there with the setup.

    I tried putting a modified query_posts in the template files and also tried the method with the functions.php before, but that didn’t work for me. Didn’t make sense and was driving me crazy. Come to think of it, I just tried it all locally. So definitively a problem there, I guess. Will have to look at it.

    Well, sorry for any inconvenience :) The wood, the trees… you know ;)

  59. Wordpress changes | Excelling in excellence since 2001 | bryandunn.com Says:

    [...] http://www.codehooligans.com/2008/04/27/simply-exclude-plugin/ [...]

  60. PC Says:

    Thank you for your excellent plugin and for sharing your work. It does exactly what I needed.

    PC

  61. Daddy Says:

    I installed this plugin and I’m running into a substantial problem: I have excluded one category from the front page … but doing so causes all of my entries to display on index.php in chronological order instead of reverse-chronological order … which means that the oldest post on the site is showing up at the top of the homepage. Any insight as to why and, more importantly, how I can fix it?

  62. Ryan Says:

    @61 same thing is happening to me. This issue renders this filter completely useless.

  63. Daddy Says:

    Does anyone have this working in WordPress 2.6? What *specifically* did you have to tweak?

  64. Paul Menard Says:

    @Daddy: I’ve not tested my plugin in 2.6 yet. But it should work just fine. Though still suspect the issue with the ordering of content may be an issue for some. I still cannot reproduce that on my test sites.

    P-

  65. Rodrigo Mejia Says:

    Hi

    I’m really excited about this plugin because I think it can do exactly what I was looking for.
    I just installed the plugin with wp 2.6 Everything shows as it should but the values I enter are not stored neither in the plugin settings not in the “hide from search” on each page.
    I’m doing something wrong?

  66. Paul Menard Says:

    @Rodrigo Mejia: Thanks for the comment. I’ve been so bus with client work I didn’t realize WP 2.6 was coming so fast. Last report I saw mentioned an August release. Let me do some QA of the plugin under 2.6 this afternoon. Thanks

  67. Rodrigo Mejia Says:

    Hi Paul

    Thanks a lot for the updatede file. It worked perfect with wp2.6!

    I just have one more question. Is it possible to use your plugin to make some posts or categories completely unavailable to any anonymous user? I’m trying to have two types of content in my site: some pages and categories for public access and some for registered users.

  68. Leonaut.com Says:

    SimplyExclude…

    Provides an interface to selectively exclude/include categories, tags and page from the 4 actions used by WordPress….

  69. Rodrigo Mejia Says:

    Ok… I just wanted to be sure if it was possible to get what I wanted using this plugin… even with a bit of tweak. Anyway, nice plugin and thanks for your help :)

  70. professional Says:

    Hello. I think you are eactly thinking like Sukrat. I really loved the post.

  71. Matt Kastner Says:

    I’ve been trying to get tag exclusion to work on my homepage for the past week. Nothing but dead ends. Tag__not_in worked, but it had too many side effects. Your plugin works flawlessly. Thanks.

  72. Wordpress Tips and Tricks » Blog Archive » Wordpress Include or Exclude Categories from showing up on the home page Says:

    [...] Have you ever been working on a client WordPress project, or maybe your own blog and needed to exclude a Post category from the Front page? Or needed to exclude a Page from being included in a Search? CodeHooligans.com wrote a nice plugin to do this. [...]

  73. Matthew Says:

    I notice that you’ve changed List to Archive. I have attempted to either INCLUDE or EXCLUDE categories from Archive in hopes to control their appearance in the sidebar as part of the category list. I do not see any affect. Am I expecting something that is not meant to occur?

    What I’d like to accomplish is to have control over what categories appear or not in the list of categories in the sidebar, plus the front page, search, and feed.

    Thanks!

  74. Paul Menard Says:

    @Matthew:
    Thanks for the comment. The plugin is not really coded to handle the display of a listing like the list of category items in the sidebar. The plugin is coded to control the listing of a category archive page for example. Sorry. Though this might be an addition I can make to the plugin. Give me a while. I’m still setting of my development system on a new laptop.

  75. Matthew Says:

    Paul,
    Thanks for the reply. This does seem to be an area missing that there not a functional plugin. I definitely like your include OR exclude approach. It’d be real nice to go category-by-category and choose front page, list in sidebar, archive, search, and feed to give full control over category. Likewise, I’m sure for tags though I presently do not use them (once I get control of categories, I plan on looking at tags to see how I might take advantage of them though, to be honest I find the whole cloud approach that seems the current trend to be noisy clutter on a page rather than a functional and orderly feature–maybe because I am always looking for the obscure item buried in the cloud).

    I definitely look forward to any update you might do to your plugin. Any workaround to suggest in the interim?

    Thanks,
    Matthew

  76. Matthew Weaver Says:

    I have found that each resulting link returns the same files. My includes are set to about a half-dozen categories. That works fine. But the resulting menu links, even though they reference different cat numbers, return the same posts. See at http://www.qualityprojects.com.

    FYI, I’ve addressed my 8/4 question by writing simple if/then statements in the sidebar.php file for the categories.

  77. riant Says:

    Thanks for your great plugin, It works fine with my JsTheme.

    At first, I wont to do this work by a code: ” php query_posts(‘cat=-2′); ” But it makes something wrong with my theme. So I am looking for a plugin, and this is it.

    Thank you.

  78. Gonz0r Says:

    Wow, thank you for this plugin! This is exactly what I’ve been looking for. No I have full control over navigating visitors through the pages :)

  79. Tobias Says:

    many thanks for the great plugin. i have it now on my site http://www.per-autopilot-zum-reichtum.de/ live on the deployment. It works fine!

    regards tobias

  80. 30+Wordpress分类插件 | 帕兰映像 Says:

    [...] Simply Exclude 简单的排除插件,可以排除分类,页面或标签,含四个判断函数,用来设置在首页,存档页,Feed页等要排除哪些内容。 [...]

  81. Aleksey Says:

    The plugin works, but I have the problem with the posts order too :( I tryied to modify a little the code from the top of your very first post on this page, but the problem still remains :( I am using version 2.6.1, and almost sure that problem is not caused by some other plugin I use… Waiting for your reply. I also tryed maybe 4 or 5 other ways to exclude category from the index page, but with all of them I got some bugs…

  82. Meletakkan Hasil Google Pencarian Pada Halaman Blog Sendiri | BangBOSS.net Says:

    [...] Klo yang nda mau susah ber”koderia”, ada pluginnya koq.. liat disini dan disini [...]

  83. Michael Camilleri Says:

    Thank you so much. I spent 20 minutes trying to work out how to do this before stumbling across your plugin.

    Feel free to email me if it gets put up on wordpress.org. I’d be happy to add a glowing review.

  84. Exclude a category from home page - DIY Themes Forums Says:

    [...] suggestion. ☺ In the meantime, check out SimpleExclude. __________________ Rick Beckman, Kingdom Geek & Thesis Support Ninja [ Thesis Manual ] No [...]

  85. Thomas Says:

    So it seems like I just found the solution to the problem with the inversed post order:
    If you select the “Exclude” option for the Front Page and check one or more categories in the corresponding column you will end up with inversed post order.
    If however you select “Include only” for the Front Page and check all the categories you want to apear (which will probably be quite a few) it will work just fine (meanig you will have the normal post order).
    This seems to work for me on my test installation (2.6.2) but I have no idea what’s the reason for this behaviour. Hope I could help some of you.
    By the way, great plugin!

  86. goofydg1 Says:

    Did anyone figure out the post order being reversed. I can’t seem to get that and it’s kinda important.

  87. goofydg1 Says:

    Never mind. Reread comment 85 and got that to work. Thanks Thomas.

  88. Branch Says:

    Great plugin! I have only one problem.
    I have set the plugin to display just one category in my home page. I also have a recent entries widget in my sidebar.
    The problem is that the plugin filters the post in the widget too! I’d like to have all my posts listed in the recent entries widget. Is there any easy solution to this?

  89. Web-kreation - Wordpress - Exclude pages from search results Says:

    [...] way to exclude pages from search results is to install the Simply-Exclude plugin. Another solution I found to work pretty well is to add a filter in functions.php to only include [...]

  90. Dan Gayle Says:

    I had a question: How do you get the exclude page function to work? I already have a variant of the exclude category function like you have demonstrated, but I can’t figure out how to exclude any pages. Suggestion?

  91. KurmanAhlabm Says:

    Hi there!
    My first post at this great blog!
    I wanna show u my dayly updated blog: Black Amateur Fuck Video
    Have a nice day!
    BB!

    P.S. if you don’t want to see this message please write me to no.ads08@gmail.com with subject “NO ADS” and URL of your forum
    Thank you for cooperation!

  92. Jimmy @ Wealth Is Boring Says:

    Just installed this plugin on WordPress version 2.7 and it’s working like a charm. Great work!

  93. wpcandy.com - plugins we use - KeganBall.com Says:

    [...] Simply Exclude [...]

  94. Wordpress分类插件收集 - 朱鸿均blog Says:

    [...] Simply Exclude [...]

  95. slobjones Says:

    I installed SE to remove pages from WP Search, and that part of it works rather well.

    However, SE also reversed the display order of all my posts, so they’re display oldest to newest!

    I’ve disabled SE for now. Has anyone else had a similar problem with SE?

  96. Blog Plugin: Simply Exclude Says:

    [...] found this great Wordpress plugin, Simply Exclude, it gives the administrator of a Wordpress blog/site the ability to decide what is visible where. [...]

  97. Exclude pages from search results | hieudt's blog Says:

    [...] you intend to exclude pages from search results, you can use the Simply-Exclude plugin. However, another solution that works pretty well is to add a filter in functions.php to only [...]

  98. 30+Wordpress分类插件 | 摆渡空间-您的免费存储空间 Says:

    [...] Simply Exclude 简单的排除插件,可以排除分类,页面或标签,含四个判断函数,用来设置在首页,存档页,Feed页等要排除哪些内容。 [...]

  99. Adlina Says:

    I’ve tested this plugin with 2.7 and it works perfectly! Thank you so much!

  100. Paul Menard Says:

    @Adlina: That for the comment glad you like the plugin. And let me know if you see something strange. Many others have posted comments here about reversal of the order or post listings. I’ve not been able to reproduce this on any of my client sites.

  101. En.nicuilie.eu Blogs » Top 1000 WordPress Plugin Authors Says:

    [...] Simply Exclude [...]

  102. Averill Says:

    This sounds like just what we need. Used to use the category visibility plugin but it won’t work in 2.7. Which do I download? – the one with the link … simple-exclude or this one: simply-exclude-v171

  103. Paul Menard Says:

    @Averill: This should work fine under 2.7 as it uses standard function calls instead of custom SQL queries. Always download from the repository on wordpress.org
    http://wordpress.org/extend/plugins/simply-exclude/

    Thanks.

  104. Averill Says:

    Thanks – I searched for simply exclude in Wordpress.org plugin section and quit after four pages of results. You’d think it would come up first. Anyway, knowing it is there made me go to the fifth page, just to see. Maybe the tags aren’t sufficient. Downloading now. Thanks much!

  105. gordsellar Says:

    Hi there.

    I’m pretty sure this plugin has caused some kind of major problem in my installation of WordPress 2.7, which persists even after I deactivate the plugin.

    Basically, it’s like this: there are two categories I blocked from appearing on the main page when I first installed it. If I unblock those, then the “main/front” page — the first page of my “blog” (because I use a static front page) ends up screwed up. (The posts load, but the footer is squished up to the top, as if some divs above were deleted.

    This behaviour occurs when I unblock a category that was previously blocked, and when the previously blocked category appears on the front page. So I’m wondering whether the blockage is being written somewhere, like to the functions.php file?

    I imagine I could leave the category blocked forever, and rename it, and then just move all the posts to a new cat with the title I want. But I’m not sure I remember the names of the all the cats I blocked previously, and I’m not sure I want to have a bunch of “blocked” cats sitting in my system.

    And I have confirmed, by blocking and unblocking the specific cats presently set to appear on my “front/blog” page, that it’s an issue with this plugin and related to how it handles blocked cats once those cats are unblocked. (The post you can see in the RSS in the “Korea” category is in a blocked cat. When I unblock it, it appears on the front page, but the footer also appears at the top of the page. So this is looking like a major bug, unless I’ve misunderstood something?

    Help!

  106. gordsellar Says:

    Oh, God, it’s worse than I thought. If I remove a post from a blocked category, then NOTHING displays correctly. (I had a post in the Korea category, moved it to a different category, and when I did so, suddenly the page was displaying wrong again.)

    I really hope that the functions are being written somewhere permanently so that I can simply uninstall this plugin AND delete the blockages. Then maybe I can just do manual filtering, or else reinstall this and block only categories I want permanently to block.

    I really need some help to fix this, else, I fear, I shall have to reinstall.

    (I’m going to sleep now (I’m on Korean time), but I’ll check back in the comments section tomorrow.)

    Thanks for whatever help you can give me.

  107. Paul Menard Says:

    @gordsellar:

    I’ve had no other reports from people messing up the posts display in WP 2.7. This plugin uses normal WP plugin architecture and not nothing is written directly to your functions.php folder in your theme. The settings for this plugin are stored into your DB into the wp_options table with a specific ‘key’ for this plugin.

    In order to help I need to know a few things about your system:
    You already stated WP 2.7 – Good.
    What other plugins do you have install? There could be a conflict between other plugins.
    My plugin will stop working if you simply deactivate it. So make sure you are correctly deactivating the plugin. There are no uninstalls for WP plugins. Well not most of them. They are either activated or not.
    Could it be possibly be something with your theme?

  108. gordsellar Says:

    By the way (one more comment before bed) if it’d work just to reinstall the WP2.7 install files after deleting the plugin, I’d be game for that.

    (I tried to add a post in a new category just now, and even that, just that, broke the front page. So this is pretty dire!)

  109. Paul Menard Says:

    @gordsellar:
    I really don’t think a complete re-install will help. There must be a conflict between my plugin and some other plugin you are using. Or your theme is not 2.7 ready. Not that anything changed in 2.7.

    Again, if you simple deactivate the Simply Exclude plugin then the code is not executed. Simple as that. If you did deactivate the correct plugin and you are still having issues then the issue is not with my plugin.

    I’m willing to help as much as I can.

  110. gordsellar Says:

    Oops, you’re there now!

    I’ll try answer your questions now!

    I have a number of other plugins, but the issue persisted even when I deactivated all plugins (including yours) and it only goes away when I reset the filtering to certain categories (and when posts in those categories are in the queue for the front page. And I think something else affects the breakage, but I’m not sure what.)

    Even when I deactivate the plugin, the effect persists, so I’m wondering if something is being written to a config or php file somewhere?

    I don’t think it’s the theme; the plugin is having some effect on filtering that is messing up the theme, but fiddling with the plugin makes the effect go away.

    I haven’t deleted the plugin, for fear that doing so would make it impossible to undo the effect.

    Here’s a complete list of my plugins:

    Akismet
    Anarchy Media Player
    AntiLeech
    Batch Categories
    EmailShroud
    Enhanced Links
    Feedburner Feed Replacement
    Flickr Gallery
    Google XML Sitemaps
    HidePost
    Image Caption
    In Series
    King_Framework
    Lightbox 2
    LiveJournal Crossposter
    Maintenance Mode
    My Link Order
    Photo Dropper
    ProgressFly
    Random Quotes
    SABRE
    ShareThis
    Simple Tags
    Simply Exclude
    Slickr Gallery
    Subscribe To Comments
    Witty Text
    Wordbook
    Wordpress Automatic Upgrade
    WordPress Database Backup
    WP-Ban
    WP Ajax Edit Comments
    WP Super Cache
    Youtube Brackets

  111. gordsellar Says:

    Paul,

    It’s definitely related to your plugin. I understand that deactivate your plugin, the code is not run, but it’s as if the filtration setting I made when the plugin was activated continues to have some effect after I deactivate the plugin. Where are those settings actually stored? Is there a file I can delete or reinstall? (or a spot in my database I need to clear out?)

    The theme isn’t specific for 2.7, but it was running fine until I installed this plugin.

  112. gordsellar Says:

    BTW if you can chat, you can see my email address — Googlechat, is it possible?

  113. gordsellar Says:

    Whoops, seems you’re gone. I’ll check back tomorrow — it’s 4am now.

    Thanks for your help…

  114. gordsellar Says:

    (PS I’m guessing it has something to do with where the filter rules are being written, and their not being deleted when the plugin is deactivated. If you figure something out, please post a comment and I’ll try it tomorrow. Thanks!

  115. Paul Menard Says:

    @gordsellar:
    Gord, The plugin contains the hooks into WordPress that control the filtering. Meaning if the plugin is executed then the hooks are active and will be called by WordPress on the 4 options: is_home, is_archive, is_feed and is_search. So again make sure the plugin is Deactivated then the filtering is not executed. This plugin doesn’t write or update an WordPres core files directly. WordPress has this very extensive plugin architecture which allows for hooking into certain functions. I guarantee you if the plugin is Deactivated and you are still having issue then either you are logged into the wrong system or some other plugin is causing the issue. There is no way the plugin code is execute if the plugin is Deactivated.

    I’ve personally installed this plugin on over a dozen client sites with literally thousands of posts in many categories. I’ve not see any effects which you are describing. I’ll help out with determining your issue but I can only do so much without access to your backend system.

  116. gordsellar Says:

    Well, I would be willing to give you admin access, if you email me. (I won’t post a password here, of course.)

    I’m wondering if you can tell me where the plugin variables are stored.

    I kind of doubt some other plugin is causing this since (a) even deactivating all plugins doesn’t fix it, and (b) ONLY fiddling with my blocked categories on my front page (in the plugin interface) or the categories of the posts themselves fixes it. So I’m wondering exactly where the plugin’s variables are being stored. It must be in a table somewhere, right? Is there somewhere I can delete that table from my database?

    I don’t mean to be annoying, but the only plugin I installed have that messes with the front page, and the front page alone, is this plugin. And the problem only arose when I unblocked some categories that I had previously blocked.

    In fact, how else can I look at the list of blocked categories, outside of the plugin interface? Maybe I can edit that table, file, or whatever manually.

  117. gordsellar Says:

    By the way, some more effects:

    When the “blog” page is displayed, the title bar doesn’t show the title of that page: it shows the name of the first cat that is included for the front page in the exclude/include cat settings.

    Also, reducing the number of posts on the front page to 1 allows it to load normally. (But this isn’t an issue in the template code: I was displaying 7 posts in the front page for over a year without problems until I installed Simply Exclude, and then modified the exclusion settings.)

    And I’m sure that the exclude settings are stored somewhere, since when I deleted and reinstalled the plugin, the settings showed up as previously set. If you let me know all places where those settings are stored, I’ll try delete them manually and see if it helps.

  118. gordsellar Says:

    Paul,

    Oh, I am mortified. I realized what the error was: it LOOKED like it was linked to a post that was in an excluded cat, but I finally realized it was linked to the CONTENT in one particular post that happened to be in the excluded cat. (It was, of all things, stray tags that happened to remain in the HTML code, but since I copied and pasted the content from a website into the Visual Editor, I had no idea.)

    It had nothing at all to do with the excludes, and you were right to insist the plugin wasn’t at fault.

    I’m sorry for having troubled you. If you’d delete my comments it might be better, as it would prevent other users from being misled by my own gaffe.

    However, I am still curious, when I switched from excludes to includes on the Blog page, the page name in the title bar displayed at a category name (The first included cat, actually) rather than blog. I’ll see if I can reproduce that, though… and, yep. You can see it on my “Blog” page, here:

    http://www.gordsellar.com/blog/

    I’m assuming that has to do with your plugin (I could be wrong, again, but it’s a behaviour that only just switched on when I switched from exclude to include only, a moment ago.)

    Again, sorry for the string of panicky messages, and thanks for your calm help. You were right! (And now that I’m not mixed up and thinking the plugin caused the problem, I’m impressed at its functionality… the privacy control is quite helpful!)

  119. Aaaaaaaaaaaaargh! Doh and Whew! : gordsellar.com Says:

    [...] And I should add that the plugin I thought was at fault is a very cool one for WordPress, by the way: Simple Exclude lets you quietly, simply exclude posts from specific categories from the front page, archives, searches, and RSS feed of your website. And since it also won’t screw up your website unless you screw up and stupidly include someone else’s div tags in your content, I can highly recommend it. The plugin is here. [...]

  120. Using WordPress As A Full Fledged CMS - WordPress Tavern Forum Says:

    [...] attributes can give an expanded description of what the visitor will see when going to that page. Simply Exclude by Paul Menard – Allows you to selectively exclude/include categories, tags and page from the 4 [...]

  121. Hal Says:

    Re: Wordpress 2.7 / Simply Exclude 1.7.1

    Thank you for all your hard work in producing this superb and essential plugin.
    To let you know, there are a few minor bugs which it would be great if you could resolve for the next release if you have time…

    1) Firstly, at line 1307 of simplyexclude.php:

    For WP 2.7, change:

    <a href=”/wp-admin/edit.php?page=simplyexclude&se_admin[action]=edit_pages”>Simply Exclude

    to:

    <a href=”/wp-admin/options-general.php?page=simplyexclude&se_admin[action]=edit_pages”>Simply Exclude

    2) The following indexes / variables need to be checked (using isset() etc) to establish whether they exist before they are used:

    Undefined index: page in /home/myuser/public_html/content/wp-content/plugins/simply-exclude/simplyexclude.php on line 48

    Undefined property: SimplyExclude::$_options_key in /home/myuser/public_html/content/wp-content/plugins/simply-exclude/simplyexclude.php on line 75

    Undefined variable: exclude_page in /home/myuser/public_html/content/wp-content/plugins/simply-exclude/simplyexclude.php on line 1311

    Undefined variable: class in /home/myuser/public_html/content/wp-content/plugins/simply-exclude/simplyexclude.php on line 932

    Undefined index: 2 in /home/myuser/public_html/content/wp-content/plugins/simply-exclude/simplyexclude.php on line 1029

    Thank you and good luck with your endeavours.

    Hal

  122. Hal Says:

    Oops
    For point 1) I left out this code:
    <a href=”

    Anyway, I’m sure you will see what I mean. ;-)
    Cheers
    Hal

  123. Hal Says:

    OK, I didn’t leave it out – I think the comments form filtered it. Hence, g e t _ o p t i o n ( ‘ s i t e u r l ‘ ) needs to be in the a tag at the beginning.

  124. Paul Menard Says:

    @Hal:

    Thanks for the excellent comments. I will include these in the next release soon.

  125. Simply Exclude Plugin | WordPress Plugins Database - WordPressPluginsDatabase.com Says:

    [...] category or tags Archive. issearch – When the user views a search result page. isfeed – When a Feed …..read more Download Plugin! Version 1.7.2 Last Updated: February 5, 2009 Plugin Owner: Paul Menard [...]

  126. My current wordpress setup « Head.SmackOnTable(); Says:

    [...] Simply Exclude – I use this so I can exclude the “links” category from the mainpage, and the rss feed [...]

  127. Michael Says:

    Paul, great plugin. I am curious, how could I apply this to a custom page? Curious how could I call (or modify) your code to say is_page(‘mike’) instead of like is_home….

  128. Wordpress?????? | ???? Says:

    [...] Simply Exclude ?????????????????????????????????????????Feed?????????? [...]

  129. Simply Exclude Plugin | WordPress Plugins Database - WordPressPluginsDatabase.com Says:

    [...] – When the user views the Front page… …..read more Download Plugin! Plugin Owner: Paul Menard Homepage: Visit Plugin’s Website Version 1.7.2 [...]

  130. Erika Jurney Says:

    Thank you! I replaced hinky plugins with a few lines in functions.php — perfect.

  131. WordPress Plugins for Theme Development | Vandelay Design Blog Says:

    [...] Simply Exclude [...]

  132. Web Page Design For You » Blog Archive » 12 WordPress Plugins for Theme Development Says:

    [...] Simply Exclude [...]

  133. 12 WordPress Plugins for Theme Development | FamousandSpicy Says:

    [...] Simply Exclude [...]

  134. Syrman Says:

    Thank you for this plugin, it is very useful, I install it, wordpress 2.71, and I exclude some of the categories, but still show in the front page, any comments.

    Thanks

  135. Paul Menard Says:

    @Syrman:
    Would be glad to help debug this. Can you post your site URL?

  136. Crear mas fácil themes para wordpress | Blogger Cursos Says:

    [...] Simply Exclude [...]

  137. 12 WordPress Plugins for Theme Development | Easy Street Interactive Blog Says:

    [...] Simply Exclude [...]

  138. Jean-Paul Horn Says:

    Hi Paul,

    I love this plugin and have this installed for quite a long time. However, I kept seeing weird MySQL errors in my error.log which I couldn’t find a reason for. After revisiting the errors I noticed the exclusions by Simply Exclude (NOT IN, etc) and I suddenly spotted the bug: a double table_prefix crept up somewhere in the query. The errors immediately stopped after disabling Simply Exclude, so I think your plugin is (unfortunately) the culprit.

    This is the query in whole, I emphasised the double prefix.

    1
    [Tue Apr 14 02:57:20 2009] [error] [client 66.249.71.170] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(myprefix_posts.post_status = 'publish') ) AND (ID NOT IN ( 250,6651,235,1076,245,' at line 1 for query SELECT SQL_CALC_FOUND_ROWS myprefix_posts.* FROM myprefix_posts WHERE 1=1 AND ( myprefix_posts.ID NOT IN ( SELECT tr.object_id FROM myprefix_term_relationships AS tr INNER JOIN myprefix_term_taxonomy AS tt ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy = 'category' AND tt.term_id IN ('1924', '3428') ) AND <strong>myprefix_posts.</strong>(myprefix.post_status = 'publish') ) AND (ID NOT IN ( 250,6651,235,1076,245,244,237,322,238,239,236,246,1764,7083,3675,474,1148,1783,2,7906,7908,7909,7910,7911,7912,7923,7925,7926,8619,13334,4489,14439,14457,14471,14793,14809,242,240,1763,241,243,14881,14884,14889,14894,15211,15218,15220,15225,15231,15309,15761,15856,15860,270,251,263,1762,16151,16367,17330,17336,17345,17348,17351,17654,17714,17781,17843,17868,17888,17892,18104,18106,18242,18488,18494,18579,18582,18592,18628,18800,18812,19113,19251,19360,19363,19507,19510,19608,19645,19653,19882,19994,20119,20225,20260,20242,20349,20354,20361,20368,20378,20380,20382,20396,20399,20409,20415,20419,20513,20569,20692,20774,20833,20929,20984,21000,21008,21006,21020,21139,21163,21226,21232,21311,21313,21366,21418,21430,21431,21482,21515,21539,21595,21657,21676,21708,21728,21764,21852,21870,21944,21943,21964,21965,22068,22102,22177,22205,22243,22283,22305,22342,22392,22448,22522,22579,22615,22657,22697,22724,22770,22821,22860,22909,22925,22949,22971,23008,23019,23045,23057,23080,6046,24401,25248,25534,25628,25629,25888,26778,26828,26847,26894,26941,26988 )) ORDER BY myprefix.post_date DESC LIMIT 4680, 10 made by wp-includes/query.php(2249): wpdb-&gt;get_results()
  139. Paul Menard Says:

    @Jean-Paul

    Thanks for the note. So can you provided some details on the following:

    1. What version of WP
    2. Are you excluding Pages, Categories, etc?
    3. what other plugins are you running?

    Will be glad to work with you on cleaning this up. You can email me information to paul [at] codehooligans [dot] com
    Thanks!

  140. Jean-Paul Horn Says:

    Sending you an email with all answers :)

  141. Paul Says:

    Thank you for the Simply Exclude plugin. I’ve installed it after a similar plugin stopped working (maybe because of a conflict with other plugins or themes).

  142. 12 WordPress Plugins for Theme Development | Designurimagination Blog - Let Your Imagination Fly Says:

    [...] Simply Exclude [...]

  143. WordPress Guide: Exkludera en kategori Says:

    [...] Om du arbetar mycket med WordPress så kommer du förr eller senare stöta på ett projekt där du behöver exkludera en kategori från förstasidan. Har man inte riktigt kunskapen eller modet att ändra i WordPress-mallen så väljer man t.e.x. att ladda ner pluginet SimplyExclude. [...]

  144. 12 WordPress Plugins for Theme Development | Poste Online Says:

    [...] Simply Exclude [...]

  145. 12 WordPress Plugins for Theme Development | Design-Tut+ Says:

    [...] Simply Exclude [...]

  146. How to divide your Wordpress blog into two or more different main pages. « My Graphic Friend’s Blog Says:

    [...] Exclude category B’s posts from the blog’s home page (mainpage-A):Install SimplyExclude plugin for WordPress. Enable the plugin for your blog. In the blog’s admin panel, go to Settings/Simply [...]

  147. Tyler Regas Says:

    Thanks so much for this plugin! I’m having some issues understanding the syntax of the interface. I have only a few of what will eventually be hundreds of categories which I want to appear on the homepage. I don’t understand the concept between Include Only and Exclude and how that relates to the Exclude options below.

    If you could take a moment to explain to an aging dork, I’d appreciate it :)

    Tyler

  148. Paul Menard Says:

    @Tyler Regas:

    Sure no problem. My though the the Incude vs. Exclude functionality on the categories is this.

    Say you have 100 categories total in your WP system. Of these you only want 3 to display on the home page. With Exclude only you would need to go into the SE admin interface and check 97 category boxes to exclude all the other categories that will not be displayed on the home page. Plus every time you added a new category to your system you would need to go into the interface and make sure that categories checkbox was set since you only want the 3 special categories displayed on the home page.

    Using the ‘Include only’ logic. I would set the checkbox for each of the 3 categories and set the Include only at the top of the admin interface. Now when new categories are added to my WP site via new posts I don’t have to manage the exclusion.

    Hope this helps in your understanding.

    P-

  149. Lorenzo Says:

    This plugin is exactly what I was looking for!! Thanks a bunch!

  150. All my bookmarks ever | Daniel John Gayle Says:

    [...] /2008/04/27/simply-exclude-plugin/#comment-16639 [...]

  151. Dimmka Says:

    ????? ???????? ????, ???????!!

  152. [??]2009.06.01 at ??? Says:

    [...] 21?Wordpress??????/ Gallery Plugins | ????Picasna — free fullscreen flash gallery plugin for wordpressFirefox ???????ScribeFireWordpress???SimplyExclude????Page??????????????? [...]

  153. Waffen Says:

    Thanks for writing this brilliant plug-in. Exactly what I need.

  154. Måns Says:

    Hello,

    great plugin, but I find that with WP 2.7.1, there are some problems.

    If I want to exclude certain post categories and at the same time only include certain PAGES, nothing is found during search at all.

    The solution was to comment out row 1192 :

    add_filter(‘posts_where’, array(&$this, ‘SE4_exclude_posts’));

    After commenting out that line of code, the plugin works just fine.

  155. My Standard 6 Wordpress Plugins - Blog.PDWD.net Says:

    [...] 4 – Simply Exclude [...]

  156. Nnyan Says:

    Hello, does this work with 2.8?

  157. danivalentin Says:

    it works in 2.8 only when you set in the page (http://wordpress.org/support/topic/278506)

  158. verex Says:

    WP2.8 problem solution…

    Add to code line(298)
    $se_admin['action'] = $_GET['se_admin']['action'];

    after line(297)
    $se_admin = $_REQUEST['se_admin'];

  159. Neal Says:

    Has anybody gotten this to work. When I add the line of code the page goes blank.

  160. G Says:

    You have to add curly braces to the if branch. The lines 296 through 299 should read:

    if (isset($_REQUEST['se_admin']) {
    $se_admin = $_REQUEST['se_admin'];
    $se_admin['action'] = $_GET['se_admin']['action'];
    }

  161. Paul Menard Says:

    G,

    Thanks for sharing the code changes. I just posted this included update into the WordPress plugin respiratory. New version of Simply Exclude 1.7.2.1 is now ready for download. I’ve been working on some other major overhaul areas which are not quite ready. So this is a very minor change to get thinks working in WP 2.8.

    Thanks to everyone for their support and use of this plugin.

  162. Chris Says:

    Hi Paul, Great plugin. I have found it very useful on a number of sites. I made the move to WP 2.8.1 and the plugin is not working for me now. Same problem where tick boxes don’t remain ticked. Do you know when there may be a fix for this? These changes to the WP code must be annoying you.
    Cheers
    Chris

  163. Chris Says:

    Sorry, had to completely remove old install of the plugin before uploading it again. It’s working fine. YEt again. Great plugin.

  164. Plugins We Use | Word Press Magazine Says:

    [...] Simply Exclude [...]

  165. JR Says:

    I installed this plugin and deactivated it. Now, all my blog posts links show up in the header even after the plugin is deactivated. Help! Thanks.

  166. Paul Menard Says:

    JR the plugin doesn’t installed code, database table or anything so not sure how it can still be functioning even after you deactivated it. Try just removing the plugin files and folder.

  167. Tim Says:

    This plugin is no longer working with 2.8.2 Wordpress. When trying to search it just brings a user back to the “No post is found page”. ???

  168. Paul Menard Says:

    @Tim: I just tested the latest version on a fresh install of WordPress 2.8.2. I created three categories and three new posts assigned to each one of the three new categories. Then in the Simply Exclude management under categories I defined only one of the categories to be displayed on search. Same for Home and RSS. This all seemed to work from my end as expected.

    This may be a conflict on your end with other plugins. Can you tell me what other plugins you have active on your site? Also I need to know how you have the Simply Exclude plugin configured. You really didn’t mention what you were searching. Or more to the point what you were expecting the results to be. Many times user don’t fully understand the configurations. Mainly with the ‘include’ vs’ exclude. options.

    Give more information and I’ll try and setup a test environment on my end to match it. By all accounts the plugin should work under WP 2.8.2. Not much changed from 2.8.1

  169. Tim Says:

    Thanks for the response Paul. Here’s a list of plugins I’m running. See the funny thing is the 2.8.1 was working with all of these plugins including Simply Exclude just fine. I changed nothing in the plugins area. After the upgrade, the search stopped working all together. So I deactivated Simply Exclude and the search works. But the problem is, I’m running into certain pages with certain titles I need to have searchable, (hence the Simple Tags plugin) and I need to exclude some pages that display content results that are irrelevant to the titles being searched first. I even tried to disable the Simple Tags to see if that was the problem and my site was still unsearchable with the Simply Exclude activated. So it seems to work when I deactivate the Simply Exclude plugin, and does not work when it is activated. Here’s my list of plugins…

    Bad Behavior

    Contact Form 7

    Delete-Revision

    FLV Embed

    MailPress

    MailPress_bulk_import

    MailPress_connection_sendmail

    MailPress_mailing_lists

    MailPress_remove_prototype

    MailPress_upload_media

    Page Links To

    pageMash

    Really Simple CAPTCHA

    Simple Tags

    Simply Exclude

  170. Paul Menard Says:

    @Tim: Thanks for the details on your setup. Some other questions. How are you using the Simply Exclude plugin? From your last response you sort of mention Pages. I will admit the process for handling Pages exclusion in WordPress is quite difficult. I had planned to drop support for Pages since the Search Everything plugin does this very well. So if you are dealing only with Pages you might want to try the Search Everything plugin

  171. Tim Says:

    I have been using the simply exclude to block out some pages that had all the keywords that people would normally search by that resided in the content of that page. They are typically overview pages that I didn’t want searchable. Just let people search straight to the page needed. So I used the plugin for that reason. I use the plugin for other websites I own and the page feature comes in very handy. It would be disappointing to see the support removed for that. This websites in question is the only one giving me issues, so I did try the search everything plugin and that has seemed to fix my issue. So I will leave it on that term. For future sites, I would love to still use your plugin for other reasons. Thanks for your quick responses and troubleshooting help. It’s greatly appreciated!

  172. Paul Menard Says:

    @Tim: Yeah I hear you on not removing the Page Exclude option of Simply Exclude. I’ve had just too man people running both and there is a serious conflict. The real issue is that WordPress really doesn’t provide good hooks for excluding Pages in the search query. So all plugin resort to parsing the SQL query which can get ugly quick. I will definitely take a look on the Page code to see if I can tell what is going.

    Glad to hear you at least have a solution. :)

  173. 12 WordPress Plugins per svilupattori dei Thems | RADENS.com - Mondo WordPress Says:

    [...] Simply Exclude [...]

  174. ?WordPress??????30+ — ???? Says:

    [...] Simply Exclude ?????????????????????????????????????????Feed?????????? [...]

  175. Victoria Says:

    Love the plugin!

    I am having a problem with the mass exclude section — hoping this is a quick and easy fix.

    When I go to mass exclude pages, I get an error:

    “You do not have sufficient permissions to access this page.”

    Is there an easy fix to this that I am missing? I am using WP 2.8.3 on a StudioPress theme– logged in as the main admin.

    Help?!

  176. Paul Menard Says:

    @Victoria: If you are logged in as the default ‘admin’ user you should have full permissions to manage the plugin. Possibly something with the theme you are using or some Role Manager plugin. Try to switch to the default WP theme then check if your access clears. If that doesn’t work try to identify an existing active plugin that may be causing your issue.

    Let me know.

  177. 4000+ WordPress Plugins | Blog | KP Design Says:

    [...] Simply Exclude by Paul Menard Provides an interface to selectively exclude/include categories, tags and page from the 4 actions used by WordPress: is_front, is_archive, is_search, is_feed. [...]

  178. impavertophedlolepe Says:

    BymnBleanuntySpeno

  179. impavertophedlolepe Says:

    BymnBleanuntySpeno BymnBleanuntySpeno

  180. Wordpress als CMS | Contentgirls Says:

    [...] uitsluiten (Naar plugin) Mocht je nu toch met posts willen werken, dan is ook daar een handige tool voor. Met deze tool kun [...]

  181. phil Says:

    Hi, thanks for the plugin.

    I know his says its not compatible for 2.8+. But id thought id give it a go regardless, as after some reading people seem to of got it working ok.

    However I have an issue, the exclude option is working fine within the pages. However it would seem that when a new page is created, it is automatically excluded from the search results without the command, changing it to exclude>save>then>back again doesnt fix it -) I wonder if you have any ideas on this.

    Maybe I will just have to remove and do it manually, but i like the idea of having an option box in the pages and not having to dig into the code and add ids for every new page I add and want to exclude you know.

    Thanks

  182. Top 1000 WordPress Plugin Authors « Metode de promovare Says:

    [...] Simply Exclude [...]

  183. Debra Says:

    Great plugin. Hope you can help!

    When I go to Settings, exclude pages, (from search) I get this error message:

    You do not have sufficient permissions to access this page.

    I am an administrator.

    Thank you.

  184. nodogeek Says:

    excellent post, just what im looking for doin in my WP. its complicating my existence this lack of exclusion feature… peace

  185. Ausschließen und so | Schnaberlack.de Says:

    [...] nicht mehr von Gewinnspiel-Beiträgen genervt. Bedanken dürft ihr euch Paul Menard, der das Plugin Simply Exclude erstellt hat. Diese Plugin ermöglicht mir unter anderem Beiträge von der Startseite und aus dem [...]

  186. Nick Says:

    This plugin appears to be very very confusing. I had a test post I was working with. I assigned a special category to it. I got it to become the only post on the home page, and it appears with all other posts, but I can’t get it to actually be excluded.

    What are the first four options at the top? Do they some how impact the effect of excluding at the category level?

    I’ve spent over an hour on this with no success.

  187. 30+Wordpress???? « ???? ??@?????? ??????? Says:

    [...] Simply Exclude ?????????????????????????????????????????Feed?????????? [...]

  188. ??? » wordpress?????? Says:

    [...] Simply Exclude ?????????????????????????????????????????Feed?????????? [...]

  189. Alan Says:

    Hi. I wish to exclude several categories from my main blog post. Those categories appear elsewhere on the site, and so don’t want the blog to be redundant. Can I use your technique to exclude categories from the blog page, not from the front page.

  190. c4 Says:

    i have a feeling this plugin really screwed up my home page – im sure it’s because i messed it up, but still – can anyone look in my source code and tell me to take out in order to completely deactivate the plugin?

  191. Paul Menard Says:

    @c4: Thanks for the reply. This plugin does not make any code changes to your home page or any part of your theme or any file of the WordPress core. The plugin only applies filters to the WordPress Query object when a given page is loaded. You can deactivate the plugin and it will then not function.

  192. Useful Plugins for Wordpress Theme Developers - Wordpress Arena Says:

    [...] 10. Simply Exclude [...]

  193. wparena Says:

    I have found this plugin to be virtually indispensable for theme development, included this plugin in my article

  194. No publicar post en la portada Says:

    [...] el plugin era –> SimplyExclude Plugin for WordPress CodeHooligans Simply Exclude __________________ @GnDx  | Artificial Intelligence is no match for [...]

  195. Adam Says:

    Hi. Thanks for developing this great plugin. Are there plans to verify compatibility with WordPress 2.9?

    Thanks!

  196. Paul Menard Says:

    @Adam: Thanks for the comment. Yes, I’ve working on that this week for the Simply Exclude ad Media Tags plugins.

  197. Adam Says:

    Excellent! Thanks!

  198. » Adding search capability to Wordpress web site - Watkissonline Says:

    [...] course I don’t want a 404 error page to display when searching so I used the Simply exclude plugin to disable [...]

  199. 30+Wordpress???? | CSSWEBSITE Says:

    [...] Simply Exclude ?????????????????????????????????????????Feed?????????? [...]

  200. Justin Says:

    Thanks so much for this amazing plugin. It really helped out. As soon as I make some money I will donate. :)

  201. Mathias Astrom Says:

    Thanks for the plugin mate, saved my day! Hope you will keep it updated :)

  202. Adal Design Web Contractor Says:

    Great stuff ! This is the only clear and specific answer to that question I could find on the net. Thanks for sharing.

  203. James Says:

    Never install this plugin. It murdered my entire site. As soon as i installed it I could not access my admin, and my front end paths were FUCKED!

    shitty shitty plugin

  204. Paul Menard Says:

    @James: Thanks for the constructive comment about my plugin! Sadly you didn’t provide any details on what version of WordPress you installed this on. What other plugins you also have installed. I would be very glad to help you resolve any issue my plugin may have caused. If you are having trouble simply delete the plugin from you plugins directory. The Simply Exclude plugin does not alter any core WordPress code like some other plugin. The Simply Exclude works simply by utilizing the built in WordPress query filters.

  205. James Says:

    Sorry, frsutrated. Im running 2.8.6 with a few plugins (pagemash, custom admin branding, stats and popular post)

    Upon install I checked a few pages and categories off for excluding from search. After I did that my entire permalink structure was nuked, and I could no longer access my admin page (simply appeared as a blank page). Thankfully I was able to rollback my server otherwise I would have been screwed.

  206. Paul Menard Says:

    @James: Thanks for the details. It is very doubtful the Simply Exclude plugin effected your site. Again, by design the plugin simply excludes categories, pages, etc from certain WP actions like Home page, search, archive, etc. It does not directly alter any of the WP permalinks or rewrite rules used. I’ve very sorry you had a bad experience with my Simply Exclude plugin. Not sure what else I can tell you.

  207. James Says:

    Yeah strange. Sorry for the poor initial post. You can delete that if you like haha.

  208. Wordpress: exclude categories from being displayed on home page. « My Graphic Friend's blog Says:

    [...] Simple Exclude Plugin: http://www.codehooligans.com/2008/04/27/simply-exclude-plugin/ [...]

  209. Como excluir as páginas do resultado de busca ? | Dicas WordPress | Tudo Para WordPress Says:

    [...] Uma maneira de se excluir as páginas do resultado de busca é usar o plugin Simply-Exclude plugin. [...]

  210. Howard Says:

    Thanks! Works perfect, sir.

  211. Magnus Says:

    Hi!
    I really like your plugin! Are there any plans in making it multilingual so I can translate it into swedish?

  212. Simply Exclude plugin wordpress pour ne pas afficher certains articles | SlyGeeK Says:

    [...] Donc si ça intéresse ce petit plugin est se nomme simply exclude [...]

  213. myles canady Says:

    Wow. its really do what its name say. very simple way to exclude catagory from “POST” and but its show to your widget. that is what i needed. Thanks

  214. Justin Says:

    Hi Paul, this plugin sounds exactly what I need for my new site.

    Will it work with having the following plugins already installed:

    “Exclude pages from Navigation”
    “WP-dTree”
    “WP-Post Sorting”

    thanks.

  215. BAC Says:

    Hi,

    Great pluggin, saved me loads of time having to filter cats from the loops – Thanks!

    I am using wp_cumulus tag cloud which uses the standard wp_tag_cloud and the category I have excluded using this plugin are not excluded.

    There seems to be no standard parameter to exclude tags that belong to posts in an excluded category.

    Is this a bug or just not a feature? Any ideas on a resolution for this would be great.

    Cheers

    BAC

  216. BAC Says:

    OK sorry, edit the wp-cumulus plugin – wp_list_categories > add &exclude=10

Leave a Reply