1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Remove Category Listing From WordPress Posts and Pages

Discussion in 'Web Design' started by Greybeard, Nov 8, 2011.

  1. Greybeard

    Greybeard Junior Member

    Joined:
    Aug 27, 2011
    Messages:
    185
    Likes Received:
    18
    How do you remove the category from a post or page in WordPress?

    I feel as if it's really simple, but I can't figure it out for the life of me.

    I hope I don't have to alter any code or anything.

    Is there a plug-in that could do this as well?
     
  2. fatboy

    fatboy Elite Member

    Joined:
    Aug 13, 2008
    Messages:
    1,618
    Likes Received:
    3,227
    Occupation:
    Retired
    Location:
    Old Peoples Home
    Easiest way would be to alter the code.

    Haven't tried this but how about making a new category with a space as its name, just assign all posts to that category. Bit of a bodge but if you don't want to get your hands dirty it may be worth a go.
     
  3. PhillyLuke

    PhillyLuke Junior Member

    Joined:
    May 18, 2011
    Messages:
    101
    Likes Received:
    37
    Occupation:
    Fulltime SEO/IM
    Location:
    Philadelphia, PA
    In order for me to do some weird things with my content in Wordpress one of my sites needs a unique category for each post (I just use a number). To hide them I used the method in the link below:

    hxxp://codegrad.hub.ph/excluding-categories-in-wordpress-post-category-list/

    Basically it's a small piece of PHP code you can drop directly into your functions.php file. You then add categories to the "hide" list by adding their category ID's to the code.

    I'm no PHP pro but I found this one pretty easy to implement and it works great for me without adding another plugin to an already pretty bloated site.

    But on the other hand there are a lot of "hide category" type plugins lying around - google up some of those if you want to go that route.
     
  4. Greybeard

    Greybeard Junior Member

    Joined:
    Aug 27, 2011
    Messages:
    185
    Likes Received:
    18
    Fatboy, one category wouldn't work because I'm using categories as secondary keywords. Also, I'm going to play around with silo structure linking.

    Thanks, for the link, Luke. However, I think I'll just go with a plug in before trying that.!
     
  5. p4r4d0x

    p4r4d0x Newbie

    Joined:
    Sep 15, 2010
    Messages:
    47
    Likes Received:
    2
    Hi,

    show me site and from where you want to remove it. i have done similar things in WP by adding PHP codes (task was adding :p)

    may be i can guide you. i think you may have to remove hardly a line of code to do that nothing big.
     
  6. psychodelic2

    psychodelic2 Junior Member

    Joined:
    Sep 29, 2011
    Messages:
    157
    Likes Received:
    82
    Home Page:
    wordpress inspite of all its "ease of use", doesn't fail to fukk your head for the stupidest things..for the life of god!!