Yes, there is, and I’ve been looking for the good link to the zip file that is in the forums…………..if i find, I’ll post !
Thread Starter
sindre
(@sindre)
In fear of making a fool out of myself (publically)
isn’t that a plugin for managing comments and add contents of comments to the spam word filter and ban uri/ip’s ?
or does it just claim to be that, or is it that but also provides the function I want ?
Didn’t get to try this yet, but am wrestling with the same challenge.
Saw this following entry here: http://wordpress.org/support/topic.php?id=3767#post-66724
…it goes in the top of index.php, not in the admin, nor in the my-hacks.php files. Also, are you trying to get it to hide the category link itself? Or posts from that category? Setting $cat (which should only be done when it isn’t already set) only affects the posts displayed on the main page.
sindre – you are right, and I should have looked more closely.
Anyone know the syntax for the $cat variable (and if it can still be used with the correct version)?
Tried placing it like this:
<?php
$cat= -24
/* Don’t remove this line. */
require(‘./wordpress/wp-blog-header.php’);
?>
Site page then returned this error mssg:
Parse error: parse error, unexpected T_REQUIRE in /usr/web/site.org/index.php on line 4
thankx
Of course I did this at the very top of the site root copy of index.php
Sindre/paperlion I think I’ve got a copy of kittens hack/plugin on my other PC. If you post your (suitably munged) e-mail I will send you a copy.
Thread Starter
sindre
(@sindre)
I’m not trying to hide the category…
what I’m trying to accompish is the following:
I want to have a category say “images”
when ever I file a post to that category I don’t want it to pop up on the “main index” (ie when my site pops up, all posts that have been filed under images will be “invisible” unless you go to that category) hope this makes things clearer…
my email address is: sindre@heavy-clouds.org
Me too.
I have posts that are in French (it’s an english site). Don’t want to start another blog just for these. It would be enough if the French interest visitors would click the French category. I don’t want those posts on the front page though.
It seems the $cat = -<cat #> was used in the past to solve very problem. Just don’t know if it’s current or not, and exactly where to place this.
It’s strange that a variable like $cat doesn’t seem to work. Sure would like to know. Found this here:
http://wordpress.org/support/topic.php?id=10561#post-118788
I have 1.2.2 running and it’s easy to paste this into the index.php. But I also have 1.5 running and the index.php now works differently. Should it be in the index.php or the wp-blog-header.php?
I assume the header because that is where the HEAD tag resides, but I want to make sure.
..seems like it might be the key to the $cat function in version 1.5; however, if it works, I’m not sure, as I don’t know for certain where this short code (<$cat=”5″>) plugs into exactly.
Thanks for your help.
Paperlion, kittens plugin should do exactly what you are asking. E-mail me at ian[at]the-way-to-the-centre.org.uk if you want a copy.
In wordpress 2.0 I edited index.php like this and it hides my 6th category:
<?php
$cat=”-6″;
/* Short and sweet */
define(‘WP_USE_THEMES’, true);
require(‘./wp-blog-header.php’);
?>
A more elegant way that doesn’t require remake after every upgrade:
http://ryowebsite.com/?p=46
I am using the below and it work very well. I found it somewhere on the forum but forgot where I found it.
<?php
$blog = -3;
$cat=”-3″;
/* Short and sweet */
define(‘WP_USE_THEMES’, true);
require(‘./wp-blog-header.php’);
?>