tismey
Forum Replies Created
-
Forum: Plugins
In reply to: Any plugin to moderate the blog post?You mean something along these lines?
http://www.blueeye.us/wordpress/?p=12Dunno if it works with 2.0…
Forum: Fixing WordPress
In reply to: RSS Feed is not recognized1.5 or 1.5.1? There’s a bug with RSS feeds in 1.5 which erroneously reports a 404
If for some reason you can’t upgrade to 1.5.1 then the fix is this:
In the wp-blog-header.php in the wordpress root, find the section near the top which is
if ((isset($_GET['error']) && $_GET['error'] == '404')((! empty($_SERVER['PATH_INFO'])) && ('/' != $_SERVER['PATH_INFO']) &&
(false === strpos($_SERVER['PATH_INFO'], 'index.php'))
)) {
and change that check and the end to
(false === strpos($_SERVER['PATH_INFO'], '.php')In other words, just delete the index bit. Should work fine now.
Forum: Installing WordPress
In reply to: Creating Multiple blogs on WPYou make a mysite.com/wp2 directory and put an entire new WordPress install in there, not just the wp-config.php file.
Forum: Fixing WordPress
In reply to: How to exclude posts that only belong to one category?query_posts is a built-in template tag. The codex entry is at
http://codex.ww.wp.xz.cn/Template_Tags/query_posts
I just pasted the above lines into my index.php page, just before the loop.This method has 2 disadvantages, I have discovered. You can only exclude one category this way and the posts you exclude using query_posts (or indeed using the first method here, $cat) will still be included in your RSS feed. Another way of doing the same thing without these caveats is to use the RumCategory plugin
http://rummanddan.dk/plugins/rumcategory/
which will let you exclude categories from either the front page or the RSS Feed ‘on-the-fly’ using checkboxes on the Edit Category page.Forum: Fixing WordPress
In reply to: How to exclude posts that only belong to one category?OK, I figured this – using $cat in the root index.php broke category browsing (clicking on a category title just took you back to the homepage rather than to that category).
After some poking around in the codex I discovered query_posts which appears to have been documented fairly recently. Using
<?php
if (is_home()) {
query_posts("cat=-17");
}
?>
has the desired effect, without breaking anything.Forum: Fixing WordPress
In reply to: How to exclude posts that only belong to one category?Would this break the ability to browse categories? Now when I click on a category it just give me my front page again. Removing these lines lets me browse by category quite happily.
Forum: Fixing WordPress
In reply to: How to exclude posts that only belong to one category?So the only way to do what I wanted to do is with an undocumented feature which is itself the result of a flaw in the SQL? Figures. I do like to make things difficult for myself!
Thanks for your help!
Forum: Fixing WordPress
In reply to: How to exclude posts that only belong to one category?Hi there, thanks for the fast response. That’s excellent and does exactly what it says on the tin.
In the spirit of understanding rather than cutting and pasting, what is that actually doing?
Forum: Installing WordPress
In reply to: Creating Multiple blogs on WPNever mind, it seemd to be working now…
Forum: Installing WordPress
In reply to: Creating Multiple blogs on WPI have tried following the instructions linked to above (using a separate install using the one database and changing the $table_prefix to something different) but I get an error saying that WordPress is already installed when I run the install.php
Any ideas?
Forum: Plugins
In reply to: WP database data dictionaryd’oh! You see? here i am, goggling away and it’s right under my nose!
Thanks for that, looks like just what I was after….