Forums

Arrrgh!! Can someone please help me!? (4 posts)

  1. pickled
    Member
    Posted 7 years ago #

    I thought WP was supposed to be easy, but I can't get it to do what I want...and I'm about to jump off a bridge at this point.

    All I want right now is to be able to control what posts show up on the main page of a category.

    For example, I have post category called Articles and a sub category called Design. Currently, the posts in Articles>Design show up on the home page of the Articles category, but I only want posts that are in the Articles category to show up on the Articles home page, not the posts in the child categories.

    This has to be EASY, doesn't it? I'd think a lot of people must have theirs running this way, but I've been struggling for over a week to get this thing working right and it just work work. ANY help will be VERY MUCH appreciated.

    You can see an earlier post on this here http://wordpress.org/support/topic.php?id=30112

    However, the plugins suggested there don't really do what I need. They come close, but seem to break other parts of WP so I'm not really sure I can use them.

  2. ColdForged
    Member
    Posted 7 years ago #

    You'll have to modify the core. Open the file wp-includes/classes.php in your editor of choice on your host. Search for the two lines that look something like this:

    $whichcat .= get_category_children($cat_array...

    Insert a // before those lines.

  3. pickled
    Member
    Posted 7 years ago #

    thanks coldforged, this works great! I'm finally near where I'd like to be, only thing left is a unique page/post for the home page, any ideas how to do that with WP? I could make one by hand, but I'd rather get everything into WP that I can.

    Thanks again!

  4. Jinsan
    Member
    Posted 7 years ago #

    perhaps this link might help:

    http://wordpress.org/support/topic.php?id=26836

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.