until now.. there exists no problem that you wont find solution on the internet.. but here comes in one.. How to remove Category Base (\category) from Wordpress without disturbing the pagination.. The gurus of wordpress would definitely know what am speaking about
Are you looking for something like this Sorry but i can't understand your question properly. Category base removal plugin DON.
Use the Category Killer Plugin for Wordpress. Search for it on Google.....It works without spoiling your current setup...
these kinda plugins dont work.. with permalink structure /category/post/, the wordpress turns into www.mydomain.com/category/mycategory/mypost with category base removal plugin.. it turns into www.mydomain.com/mycategory/mypost/ but category pagination www.mydomain.com/mycategory/2/ gives 404 well am amazed i even have to tell all this.. why members here arent familiar with category base problem with wordpress ????? http://wordpress.org/support/topic/178298
The category base plugins all works wonderfully, but for all of them you have to fix the htaccess because these plugins fixes your blog and not your blog's other plugin. So do that. Htaccess rule and you should be fine.
Totally agree. I use the category Killer plugin and it works perfectly. You can change the permalink to whatever format you want your post URL to appear, just edit the .htaccess to disallow the agents to access the url structure you don't want to appear on the search results....
you saying this is working fine? there are hundreds at wordpress forums shouting for solution.. Categories pagination DONT WORK with category base removed.. i repeat that !
Hey, I found solution, it is work for my blog I use latest WP 2.6.? I tried to use few hacks, but it didn't worked well for me, so... if you did managed with 'category' in your permalinks, this is for pagination: go to wp-includes/classes.php find if ( isset($error) ) $this->query_vars['error'] = $error; under it you need to place the following if (@$this->query_vars["name"] == "page") { $tmp_ar = $this->query_vars; $this->query_vars = array(); $this->query_vars["paged"] = str_replace("/", "", $tmp_ar["page"]); $this->query_vars["category_name"] = $tmp_ar["category_name"]; } Thats it. Note. I don't use any of the hacks. My structure is '/%category/%postname/' and the category bsae is set to blank. This was hard to find and analyse, so if you have problem with (!!! only) removing 'category' from archives - pm me.
I implemented this code and it did not work. My Custom Structure is /%category%/%postname%/, and my Category Base is blank. But here's a curious thing. Even before I modified the code, I noticed that I could go directly to the desired URL. For instance mydomain/sports/ works just as well as mydomain/category/sports/. Great, but the links in the posts that lead to the category pages all contain that unwanted "/category/" thing. If the desired URLs already work, why not just change the link target for category pages? (not sure of the terminology, but I hope my meaning is clear) Thank you! Trismegustus
sdemidko graciously replied to a private message to say: "First, you have to sure your ".htaccess" file in website root directory has 777 rights. Then you need to change the code in classes.php like I said in thread. And then play around you category base - try to set different bases (".", blank or "/") Try few combinations and it should work" Here are my findings: - blank does not work at all, "category" still appears in the URL for a category archive page - / will not save (saves as blank, so same results as above) - /. will not save (saves as .) - . works! except for subcategories (404 error) and I must say I'm not too keen on hacking base WordPress files every time I have to upgrade. Am thinking of dumping WordPress before I even get my project off the ground. Thanks! Trismsgustus
Thanks for the fix! You might also want to add the following In your .htaccess file to redirect your old /category/ URLs RewriteRule ^category/(.+)$ http://www.domain.com/$1 [R=301,L] Code (markup):
I don't think this is a safe thing to do. For starters, that Category Killer plugin can cause major issues with Wordpress (read the comments on the script's homepage). Secondly, what are you going to do when Wordpress gets a major upgrade? It's going to overwrite all of the code you're putting in to removing the /category/, and all of the existing stuff you have on your site is going to get broken. For the life of me, I don't know why the makers of Wordpress force us to use a default category name instead of just treating it like a Wordpress Page.
After doing this things the categories rss feeds will be unreachable (/category_name/feed for each category_name will point to 404) - do you now how to fix this?