• Hi everyone. I’ve pondered and researches this for a while and not come up with a solution.

    I’d like to make a few categories for myself, for organizational purposes, and I do not want them to display anywhere (besides the categories interface). I can easily hide them in the sidebar, but I am not sure how to hide them on each post. You know that area after each post where it says something like “Posted in Sports”? That’s where I want to hide the categories.

    I imagine there is some PHP for this, and that’s what I’m looking for. Could anyone help me figure this out?

    Thank you so much in advance!

    PS: My ultimate goal is to organize posts into lists by view level. Each post already has a custom field that corresponds to the organizational category it would fit into. If I could create a list by custom field, that would be helpful too. Maybe I wouldn’t need the above solution. So if there is a better way, I’m open to that too.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter alsosara

    (@alsosara)

    Thanks so much! I will look at that ASAP (in a couple of hours).

    Thread Starter alsosara

    (@alsosara)

    Hmm, that appears to be for excluding entire posts. I probably wasn’t clear enough. I am looking to avoid displaying the name of the category only–the post should be displayed. Here is a full example:

    Post A is in categories “Sports,” “Entertainent,” and “Level 1”. Ordinarily, at the bottom of the post, one could read “Posted in Sports, Entertainment, Level 1”. I would like only this displayed: “Posted in Sports, Entertainment”.

    Tomorrow, I will look at the page MichaelH provided and try change it to apply to my case. I’ll report back!

    Template_Tags/wp_list_cats#Categories_With_Excludes

    That might be what you’re looking for instead.

    EDIT: Oh crap. Never mind. You’re talking about in the post meta… and um, I don’t know how to do that. Sorry. Ignore me. ??

    Thread Starter alsosara

    (@alsosara)

    Thanks anyway, FruitFly. I will use that in my sidebar if I decide to organize things this way.

    You likely find the display of the post’s category in your Theme’s index.php Template file. Look for something like the Template Tag, the_category and delete that portion of code.

    Don’t forget to backup index.php before you start!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Hide some post categories on main page’ is closed to new replies.