WordPress.org

Ready to get started?Download WordPress

Forums

FORCE REQUEST!!! query_posts(exclude) (13 posts)

  1. Indojepang
    Member
    Posted 6 years ago #

    IT'S BEEN YEARS!!! WHY IN THE HELL THERE'S NO QUERY_POSTS EXCLUDE BY CATEGORY_NAME?? WHEN THERE IS INCLUDE WITH CATEGORY_NAME?

    SORRY FOR THE CAPITAL LETTER! I'M IN DEMO MODE!!
    PHEW! IT'S SUPPOSE TO BE SIMPLE LOGIC..

  2. Indojepang
    Member
    Posted 6 years ago #

    worse!! WP 2.5 not showing category_ID!!! (i know.. just hover the link), but what the use hiding it if category_name not to be exposed well?

  3. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

  4. Indojepang
    Member
    Posted 6 years ago #

    hi otto..
    i don't mind hover my category to see the ID..
    don't need a plugin to do it..

    main subject here about exclude category_name in query_post(),
    why it's not on the parameters.

    Do you know why?
    thanks

  5. Indojepang
    Member
    Posted 6 years ago #

    addition..
    the category ID parameter is cat.
    the category name parameter is category_name.

    why not go strict and simple:
    cat_ID
    cat_name

  6. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    Use of category_name is actually not recommended because it requires extra database queries, to get the ID of the category.

  7. Indojepang
    Member
    Posted 6 years ago #

    ic..
    but I think the category_name will simplify modifying process, since it created by us.. but with category ID is choking it.

    for example developing custom template in localhost for testing purpose. I hate to change the category ID when it's online from scratch.

  8. Indojepang
    Member
    Posted 6 years ago #

    Otto are you competent to shout this input to WP Team?
    I see you are a Moderator..

  9. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    I do see your point, but that's a more long term sort of thing. I would not expect it to be changed anytime soon. At least not until the query system gets an overhaul.

    If you have a request for a specific enhancement to the code, then discussing it on the wp-hackers mailing list would be a good place to start. Once people debate it a bit and offer input, then it can be brought up on the bugtracker as an enhancement.

  10. Indojepang
    Member
    Posted 6 years ago #

    thanks.. otto :(

  11. Indojepang
    Member
    Posted 6 years ago #

    O no no no..
    on second thought.. after saw what they talking about.. i'm no programmer.. I can't stand it.. :)

    So please somebody bring this to them..
    thank's alot..

  12. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    Heheh... Not all the discussions are technical in nature.

    I posted something there to help get a conversation started around these lines. :)

  13. Indojepang
    Member
    Posted 6 years ago #

    Thanks alot OTTO!

Topic Closed

This topic has been closed to new replies.

About this Topic