I have been searching for a solution for the way the categories appear on my blog. I am happy with the way each blog post appear in the url under its respective category. But when I am browsing for the individual category archive, it was showing me an additional directory called category. Example, it was showing, redblogger.net/category/china/ but no more. I found the solution. I got the following wordpress category hack to show it as redblogger.net/china/ Thanks to Jclark.
Here is the code to be placed just before the category list (most probably in your sidebar.php).
< ?php
function fix_category_links($content) {
$content = str_replace('/category/', '/', $content);
return $content;
}
add_filter('list_cats', 'fix_category_links');
?>
If you got it working, I would appreciate a link to Jclark or to this post.
Wordpress Category Hack
Published in January 26th, 2007
Posted by Asian in webmasters
No user responded in " Wordpress Category Hack "
Subscribes to this post comment rss or trackback urlSocial Network
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Jun | ||||||
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | |||
Recent Entries
- Display Wordpress Child Categories
- Firefox Google Search Language
- Google’s Illicit Love
- 4 Adsense on a Single Page
- Importance Customer Service
- Powerful Earthquake in China
- Google Adsense Privacy Policy Generator
- Windows Media Player Print Screen
- Indian Cricket Team Won in Australia
- Make Money with Ebooks like a Guru
Recent Comments
Translators
Categories
Archives
- June 2010
- August 2009
- January 2009
- December 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
Pages
Blogroll
- Bangkok Blogger - Learn about Bangkok and Thailand
- Scottish Blogger - Scotland Blog