Viewing 2 replies - 1 through 2 (of 2 total)
  • This plugin works great. I reformatted it a bit to output my results in unordered lists.

    Does anyone have an idea about how it might be modified so that it will ignore specific categories?

    UPDATE
    Answered my own question . . .
    Just add ‘AND’ statements to the mysql query eliminating the cat_id you want to leave out of your list. In my case I added
    [CODE]
    AND cat_ID != 10
    AND cat_ID != 11
    [/CODE]

    to

    [CODE]
    $query = “SELECT cat_ID, cat_name, category_nicename, category_description, category_parent
    FROM $tablecategories
    WHERE cat_ID > 0
    AND category_parent = $parent
    ***** ADD EXTRA STATEMENTS HERE *****
    ORDER BY cat_name asc”;
    [CODE]

    Hope this helps someone out there.

    When you are using code within the site, could you please put it around backticks. Backticks are the funky apostrophe looking thing on the key next to the 1. If you hit SHIFT, it will display a ~ but without SHIFT it is a backtick.

    So code would be backtickwrite the code but don't double space or you lose the code lookbacktick.

    You can use it as a paragraph or in a sentence.

    If code is long, we recommend you paste a link to it at your site or in http://www.pastbin.com. So could you repost this so we all can see it, since we don’t know if [code] is part of it or not? Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP plugin: Category Archive’ is closed to new replies.