How to remove "category" word from wordpress url?

Discussion in 'WordPress' started by ezmoving, Jan 2, 2010.

  1. kajol

    kajol Well-Known Member

    Messages:
    523
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #21
    kajol, Jan 8, 2010 IP
  2. hassan147

    hassan147 Peon

    Messages:
    75
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #22
    great tips..
     
    hassan147, Jan 8, 2010 IP
  3. myst_dg

    myst_dg Active Member

    Messages:
    224
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #23
    myst_dg, Jan 8, 2010 IP
  4. xanth

    xanth Active Member

    Messages:
    328
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    60
    #24
    The answer is as follows : nothing will completely solve the problem. If you use any hack or plugin and have second level categories like cars/brown you'll get 404 errors for the second level categories. It is ridiculous but I've tried everything and nothing has solved it if you go beyond level one.
     
    xanth, Jan 18, 2010 IP
  5. ms.g

    ms.g Peon

    Messages:
    163
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #25
    You can't remove it, even if you manipulate the permalinks settings. The only way you can do that is to use a plugin. Or create your own.

    However, there is a better approach to this. Since removing the word 'category' may pose some problems (just like what others have suggested, the 404 and the like), why not use custom taxonomies for your project? Say you want to create a price category and you only want to display the word 'price' and no 'category' in your url. Create custom taxonomy for the term price and your permalink will display like so:

    http://dbpress.marcusblue.com/price/1-000-000/

    Custom taxonomies work more like a tag than categories. It's not hierarchical like categories, but it is much flexible than categories especially if you have unlimited number of values to input that would prove to be long when you use categories. For instance, with price, if you use categories, you are limited to setting the price categories into ranges, like this:

    $1,000,000-$1,500,000
    $500,000-$1,000,000
    $100,000 -$500,000

    Whereas with custom taxonomies, you may set just a single taxonomy 'price' and input the price for each post even to the nearest cent, like:

    $5,000.35
    $456,999.87
     
    Last edited: Jan 18, 2010
    ms.g, Jan 18, 2010 IP
  6. bekar09

    bekar09 Active Member

    Messages:
    283
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    70
    #26
    Use the plugin 'No Category Base' from the Wordpress Plugins database. It works out of the box.
     
    bekar09, Jan 18, 2010 IP