WordPress.org

Ready to get started?Download WordPress

Forums

Remove Parent Category Links off Post. (5 posts)

  1. alexrogahn
    Member
    Posted 4 years ago #

    Okay so I did a bit of research on the subject and while I found many posts about similar I didn't find anything that could solve my exact problem.

    What I want to do is simple, but I cannot for the life of me find a decent post on it anywhere.

    All I wish to do is remove the parent categories from <?php the_category(', ') ?> in my post info, the below image should show what I mean.

    http://grab.by/3GC

  2. kperrone
    Member
    Posted 4 years ago #

    I was wondering the same thing the other day. I ended up just making the links myself in a sidebar widget. I couldn't find a way to actually remove them from that tag.

  3. alexrogahn
    Member
    Posted 4 years ago #

    It's a lot easier with a sidebar or navigation bar as the links are fixed. With the post it's a variable thing... I could theoretically use custom fields but that's just annoying and (should be) unnecessary.

  4. kperrone
    Member
    Posted 4 years ago #

    Oh I'm sorry, I get what you mean. I'll look around and see if I can figure it out.

  5. alexrogahn
    Member
    Posted 4 years ago #

    Haha thanks! Not sure if you'll find much though, I've been searching for a couple of days now. Well at least I have the option of custom fields, obviously not the best solution by any means. I'll keep looking too, hopefully somone will find a good viable solution. :)

Topic Closed

This topic has been closed to new replies.

About this Topic