WordPress.org

Forums

No Subcategory Posts in Parent hack (9 posts)

  1. andrew_h
    Member
    Posted 11 years ago #

    hmmm I know I didn't come up with such an original version of that's lol.
    Andrew

  2. GuruXL
    Member
    Posted 11 years ago #

    How would this work with the latest nightly build of wordpress? I can't find that code in wp-blog-header.php

  3. Anonymous
    Unregistered
    Posted 11 years ago #

    Hi GuruXL - I am not using nightlys so I don't know but my guess is that if you search for the function get_category_children you will find the right spot.
    Andrew Hall

  4. phpNeophyte
    Member
    Posted 11 years ago #

    I tried this in WP1.2 (mingus) to no avail. What version of WP are you using that it works?
    Kevin

  5. joand
    Member
    Posted 10 years ago #

    I would like to be able to do this also. I have found the lines above, but where is /* the code snippet below */ as indicated in the post, with which to replace them?
    Joan

  6. joand
    Member
    Posted 10 years ago #

    Oh, I get it now! I found the original post on Andrew's site - which explained it a bit better for the not-so-PHP-savvy people like me. What he is saying is comment out that section of code. Works fine for me in WP 1.2. Thanks Andrew!
    Joan

  7. Anonymous
    Unregistered
    Posted 10 years ago #

    Hmmm.
    + I know PHP
    + This post fits my wishes perfectly (almost)
    + I know how to remove lines or do remarks
    - I removed the lines, have the latest version 1.2 but still my subcategory posts are shown :-(
    I also inserted a echo "test"; to see if I am at the right point of code but nothing was echoed out !?
    What can be the problem?

  8. Anonymous
    Unregistered
    Posted 10 years ago #

    I replied to this under "Don't Show Posts of Children Categories" and got a happy response so I'm posting this here as well. :) Check out, again, http://www.andrew-hall-artist.com/journal/index.php?p=69 but read my (Minna) comment below it. That's how I got the thing working
    -- Minna

  9. Wim
    Member
    Posted 10 years ago #

    If you are using nice URIs you also have to comment out $whichcat .= get_category_children($cat, " OR category_id = "); under the // Category stuff for nice URIs part

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.