• sorry for posting my question into a resolved topic. [1]
    That’s why I made a new post:

    I am using wp_list_categories() but the categories aren’t listed.
    They are in the database, though and show up when creating a post.
    They don’t show up on the categories manager.

    Is there any way to debug this?
    It worked fine until a server reboot.

    an additional note:
    adding a new category on the edit post page removes all listed categories from the list … the new category is displayed until it is selected.
    After saving the post, the category vanishes.

    Same for the category manager.

    The new categories show up in the database.

    I am using wp 2.7.1

    Any tips are apreciated.

    Thanks

    Georg

    [1] http://wordpress.org/support/topic/243504?replies=5

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter preset

    (@preset)

    Looks like the db connection is somewhat corrupt.
    As a print statement in taxonomy.php’s function get_terms
    outputs the query string. The same query returns tons of categories when run directly in sql.
    but $terms = $wpdb->get_results($query);just returns an empty array …

    Thread Starter preset

    (@preset)

    seems like the service provider messed up his data base settings.
    Result was that for what ever reason everything but the categories was parsed by wordpress.
    restarting the db a couple of times brought it back into shape.
    lucky me that other users had similar problems, else it would be hard to prove that the db is corrupt.

    Hello,

    I am using wp_list_categories(‘orderby=order&hierarchical=0&title_li=&depth=-1’) and just upgraded wordpress. After the upgrade the categories wouldn’t display anymore.

    I tried to upgrade the plugin My Category Order which created an issue with taxonomy.php. It is now disabled but categories still won’t show.

    website = famda.org.au

    How can I get the categories to list again?

    wp_list_categories works just fine for me. At least with the WordPress Default theme and no plugins…

    According to the docs, depth=-1 overrides hierarchical and orderby=order is not a valid argument.

    Each time you upgrade WP you must go to the MyCategoryOrder plugin admin page, as doing so auto-starts a patch to a WordPress core file. That patch is necessary for the plugin to work. You will see a message telling you the file has been upgraded as you go to that page.

    Once you do that the plugin should work again. the orderby=order that MichaelH referred to is a special orderby that the MyCategoryOrder plugin uses. It is not part of core WordPress but is how the plugin allows a custom category order.

    Thank you, thank you…very much appreciated.

    Actually…I’ve just realised that the category order plugin had been infected with the wordpress worm, so upgrading it was only possible by deleting the original plugin completely, and upgrading manually.

    elizabethrichardson and stvwif, thanks so much for your update. You just saved me tons of investigation time. -Amy

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘wp_list_categories() doesn’t list categories’ is closed to new replies.