SimplyExclude Plugin for WordPress
Filed Under: Tags: category, exclude, include, page, plugin, WordPress
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.
// 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.
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.

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.
You can leave a response, or trackback from your own site.



November 27th, 2007 at 2:32 am
Really good and really interesting post. I expect (and other readers maybe :)) new useful posts from you!
Good luck and successes in blogging!
November 27th, 2007 at 2:03 pm
Are you currently accepting advertising on your website codehooligans.com?
Thank you,
Nicole
Marketing Manager
ZTMC, INC.
January 20th, 2008 at 5:22 pm
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
January 28th, 2008 at 3:06 pm
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.
January 28th, 2008 at 4:03 pm
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?
February 14th, 2008 at 2:46 pm
I also notice that some of my categories are not showing up under simply exclude, what is up with that?
March 16th, 2008 at 7:03 am
[...] 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 [...]
April 24th, 2008 at 8:55 am
Hi - Looks like this plugin isn’t appearing in the admin in WP2.5. Any chance of an update to get it working? Thanks!
April 24th, 2008 at 9:04 am
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;
April 24th, 2008 at 9:17 am
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.
April 25th, 2008 at 9:58 am
[...] SimplyExclude Plugin for WordPress | CodeHooligans Uncategorized [...]
April 26th, 2008 at 8:24 am
[...] desativar o plugin, para ver o que estava acontecendo e procurar uma alternativa, até encontrar o SimplyExclude Plugin, que funcionou [...]
April 26th, 2008 at 3:10 pm
[...] 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 [...]
April 27th, 2008 at 10:10 pm
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/
April 29th, 2008 at 10:07 pm
thanks a bunch. your freakin’ code pasted in the post broke my site.
April 29th, 2008 at 10:58 pm
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.
April 30th, 2008 at 8:58 am
[...] 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 [...]
May 3rd, 2008 at 4:13 am
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
May 3rd, 2008 at 5:20 am
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.
May 4th, 2008 at 4:15 pm
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
May 4th, 2008 at 4:25 pm
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?
May 4th, 2008 at 6:06 pm
No, I catch this bug without any exlcudes
May 5th, 2008 at 7:44 am
Paul, I’ve recieved your mail and replace plugin but unfortunately error is in his place
May 13th, 2008 at 12:50 pm
It’s a great plugin!! Thanks a lot!!
May 16th, 2008 at 12:42 pm
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
May 16th, 2008 at 12:58 pm
Oli »
Hmm. It should exclude correctly. I’ll look into the Pages code over the weekend.
May 16th, 2008 at 1:37 pm
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!
May 17th, 2008 at 7:20 am
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
May 17th, 2008 at 8:25 am
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.
May 18th, 2008 at 3:53 am
Thanks! It’s working fine now. I thought I was using the most up to date version since it was also labeled 1.5.
May 18th, 2008 at 7:17 am
@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.
May 19th, 2008 at 12:24 am
what an excellent plugin. thank you for your great work!
May 20th, 2008 at 8:48 pm
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.
May 20th, 2008 at 8:59 pm
@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.
May 21st, 2008 at 5:08 pm
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
May 27th, 2008 at 6:04 am
[...] SimplyExclude Plugin for WordPress | CodeHooligans [...]
June 1st, 2008 at 11:26 am
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.
June 1st, 2008 at 1:17 pm
@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.
June 1st, 2008 at 1:56 pm
Brilliant! I’ll be waiting patiently. It’s great to have a plugin that gives you so much control over your blog-privacy.
June 2nd, 2008 at 12:20 pm
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.
June 2nd, 2008 at 3:58 pm
@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.
June 3rd, 2008 at 11:00 am
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.
June 3rd, 2008 at 3:59 pm
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!
June 3rd, 2008 at 4:49 pm
@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.
June 4th, 2008 at 7:21 am
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!
June 4th, 2008 at 9:29 am
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?
June 5th, 2008 at 7:50 am
Why this plugin doesn’t work on wp_get_archives () function?
June 7th, 2008 at 10:49 am
thank you
great plugin,
June 9th, 2008 at 11:56 am
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?
June 13th, 2008 at 5:10 am
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.
June 16th, 2008 at 4:07 pm
[...] Simply Exclude [...]
June 17th, 2008 at 2:09 am
[...] Simply Exclude Plugin or Advanced Category [...]
June 17th, 2008 at 10:22 am
@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/
June 17th, 2008 at 10:24 am
@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/
June 17th, 2008 at 10:26 am
@Jonathan Halter: I’ll need to look at the plugin you mentioned and try to externalize n API or something. Good comment. Thanks.
June 18th, 2008 at 9:29 am
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?
June 18th, 2008 at 9:51 am
@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?
June 18th, 2008 at 10:45 am
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
June 26th, 2008 at 12:31 pm
[...] http://www.codehooligans.com/2008/04/27/simply-exclude-plugin/ [...]
June 27th, 2008 at 8:57 am
Thank you for your excellent plugin and for sharing your work. It does exactly what I needed.
PC
June 30th, 2008 at 11:07 am
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?
July 8th, 2008 at 6:12 pm
@61 same thing is happening to me. This issue renders this filter completely useless.
July 15th, 2008 at 9:17 pm
Does anyone have this working in WordPress 2.6? What *specifically* did you have to tweak?
July 16th, 2008 at 7:12 am
@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-
July 16th, 2008 at 9:47 am
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?
July 16th, 2008 at 9:59 am
@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
July 16th, 2008 at 12:18 pm
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.
July 17th, 2008 at 3:38 am
SimplyExclude…
Provides an interface to selectively exclude/include categories, tags and page from the 4 actions used by WordPress….
July 17th, 2008 at 9:37 am
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
July 19th, 2008 at 8:13 pm
Hello. I think you are eactly thinking like Sukrat. I really loved the post.
July 29th, 2008 at 2:16 pm
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.
July 29th, 2008 at 5:20 pm
[...] 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. [...]
August 4th, 2008 at 4:14 pm
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!
August 4th, 2008 at 4:22 pm
@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.
August 4th, 2008 at 6:03 pm
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
August 13th, 2008 at 9:11 am
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.
August 14th, 2008 at 2:59 pm
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.
August 14th, 2008 at 3:35 pm
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
August 21st, 2008 at 7:04 am
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
September 7th, 2008 at 7:57 am
[...] Simply Exclude 简å•的排除æ’件,å¯ä»¥æŽ’é™¤åˆ†ç±»ï¼Œé¡µé¢æˆ–æ ‡ç¾ï¼Œå«å››ä¸ªåˆ¤æ–函数,用æ¥è®¾ç½®åœ¨é¦–é¡µï¼Œå˜æ¡£é¡µï¼ŒFeed页ç‰è¦æŽ’除哪些内容。 [...]
September 7th, 2008 at 8:11 am
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…
September 9th, 2008 at 11:03 am
[...] Klo yang nda mau susah ber”koderia”, ada pluginnya koq.. liat disini dan disini [...]
September 22nd, 2008 at 9:16 pm
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.
October 5th, 2008 at 3:01 pm
[...] suggestion. ☺ In the meantime, check out SimpleExclude. __________________ Rick Beckman, Kingdom Geek & Thesis Support Ninja [ Thesis Manual ] No [...]
October 17th, 2008 at 3:25 pm
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!
October 20th, 2008 at 6:43 am
Did anyone figure out the post order being reversed. I can’t seem to get that and it’s kinda important.
October 20th, 2008 at 7:14 am
Never mind. Reread comment 85 and got that to work. Thanks Thomas.
October 28th, 2008 at 10:19 am
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?
November 1st, 2008 at 2:46 am
[...] 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 [...]
November 5th, 2008 at 10:46 am
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?
November 8th, 2008 at 8:03 am
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!
November 14th, 2008 at 11:27 pm
Just installed this plugin on WordPress version 2.7 and it’s working like a charm. Great work!
November 22nd, 2008 at 12:20 pm
[...] Simply Exclude [...]
November 25th, 2008 at 1:30 am
[...] Simply Exclude [...]
November 28th, 2008 at 3:54 pm
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?
November 29th, 2008 at 11:03 pm
[...] found this great Wordpress plugin, Simply Exclude, it gives the administrator of a Wordpress blog/site the ability to decide what is visible where. [...]
December 4th, 2008 at 7:32 pm
[...] 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 [...]
December 8th, 2008 at 12:44 am
[...] Simply Exclude 简å•的排除æ’件,å¯ä»¥æŽ’é™¤åˆ†ç±»ï¼Œé¡µé¢æˆ–æ ‡ç¾ï¼Œå«å››ä¸ªåˆ¤æ–函数,用æ¥è®¾ç½®åœ¨é¦–é¡µï¼Œå˜æ¡£é¡µï¼ŒFeed页ç‰è¦æŽ’除哪些内容。 [...]
December 30th, 2008 at 5:08 am
I’ve tested this plugin with 2.7 and it works perfectly! Thank you so much!
December 30th, 2008 at 2:55 pm
@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.
December 31st, 2008 at 1:46 am
[...] Simply Exclude [...]
January 5th, 2009 at 7:39 pm
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
January 5th, 2009 at 8:45 pm
@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.
January 7th, 2009 at 5:40 am
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!
January 10th, 2009 at 12:28 pm
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!
January 10th, 2009 at 12:40 pm
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.
January 10th, 2009 at 12:55 pm
@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?
January 10th, 2009 at 12:55 pm
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!)
January 10th, 2009 at 12:59 pm
@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.
January 10th, 2009 at 1:02 pm
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
January 10th, 2009 at 1:05 pm
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.
January 10th, 2009 at 1:05 pm
BTW if you can chat, you can see my email address — Googlechat, is it possible?
January 10th, 2009 at 1:15 pm
Whoops, seems you’re gone. I’ll check back tomorrow — it’s 4am now.
Thanks for your help…
January 10th, 2009 at 1:16 pm
(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!
January 10th, 2009 at 7:43 pm
@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.
January 10th, 2009 at 8:29 pm
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.
January 10th, 2009 at 8:47 pm
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.
January 10th, 2009 at 10:52 pm
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!)
January 10th, 2009 at 10:57 pm
[...] 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. [...]
January 24th, 2009 at 1:54 pm
[...] 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 [...]
February 5th, 2009 at 3:21 am
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
February 5th, 2009 at 4:24 am
Oops
For point 1) I left out this code:
<a href=”
Anyway, I’m sure you will see what I mean.
Cheers
Hal
February 5th, 2009 at 4:26 am
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.
February 5th, 2009 at 8:55 am
@Hal:
Thanks for the excellent comments. I will include these in the next release soon.
February 10th, 2009 at 10:00 pm
[...] 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 [...]
February 27th, 2009 at 1:14 pm
[...] Simply Exclude - I use this so I can exclude the “links” category from the mainpage, and the rss feed [...]
March 10th, 2009 at 8:55 am
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….
March 10th, 2009 at 9:48 am
[...] Simply Exclude ?????????????????????????????????????????Feed?????????? [...]
March 12th, 2009 at 6:05 pm
[...] - When the user views the Front page… …..read more Download Plugin! Plugin Owner: Paul Menard Homepage: Visit Plugin’s Website Version 1.7.2 [...]
March 25th, 2009 at 12:08 pm
Thank you! I replaced hinky plugins with a few lines in functions.php — perfect.
March 31st, 2009 at 7:36 am
[...] Simply Exclude [...]
March 31st, 2009 at 8:28 am
[...] Simply Exclude [...]
April 1st, 2009 at 1:56 am
[...] Simply Exclude [...]
April 4th, 2009 at 10:18 am
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
April 5th, 2009 at 4:42 pm
@Syrman:
Would be glad to help debug this. Can you post your site URL?
April 8th, 2009 at 4:22 pm
[...] Simply Exclude [...]
April 10th, 2009 at 10:00 am
[...] Simply Exclude [...]
April 13th, 2009 at 7:22 pm
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.
[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 myprefix_posts.(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->get_results()
April 13th, 2009 at 7:37 pm
@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!
April 13th, 2009 at 8:38 pm
Sending you an email with all answers
April 19th, 2009 at 10:03 pm
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).
April 27th, 2009 at 8:45 pm
[...] Simply Exclude [...]
April 28th, 2009 at 12:24 am
[...] 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. [...]
April 28th, 2009 at 1:02 pm
[...] Simply Exclude [...]
April 29th, 2009 at 12:41 am
[...] Simply Exclude [...]
May 5th, 2009 at 11:35 am
[...] 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 [...]
May 17th, 2009 at 12:37 pm
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
May 17th, 2009 at 1:17 pm
@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-
May 28th, 2009 at 11:56 pm
This plugin is exactly what I was looking for!! Thanks a bunch!
May 29th, 2009 at 6:02 pm
[...] /2008/04/27/simply-exclude-plugin/#comment-16639 [...]
May 30th, 2009 at 1:39 pm
????? ???????? ????, ???????!!
June 1st, 2009 at 2:54 am
[...] 21?Wordpress??????/ Gallery Plugins | ????Picasna — free fullscreen flash gallery plugin for wordpressFirefox ???????ScribeFireWordpress???SimplyExclude????Page??????????????? [...]
June 4th, 2009 at 6:34 pm
Thanks for writing this brilliant plug-in. Exactly what I need.
June 5th, 2009 at 7:06 am
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.
June 12th, 2009 at 6:09 am
[...] 4 – Simply Exclude [...]
June 19th, 2009 at 2:13 pm
Hello, does this work with 2.8?
June 20th, 2009 at 2:44 pm
it works in 2.8 only when you set in the page (http://wordpress.org/support/topic/278506)
June 24th, 2009 at 2:56 pm
WP2.8 problem solution…
Add to code line(298)
$se_admin['action'] = $_GET['se_admin']['action'];
after line(297)
$se_admin = $_REQUEST['se_admin'];
June 29th, 2009 at 1:02 pm
Has anybody gotten this to work. When I add the line of code the page goes blank.
June 30th, 2009 at 9:53 pm
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'];
}
July 1st, 2009 at 5:22 am
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.