[resolved] wp_list_categories Problem (7 posts)

  1. Kaoruki
    Posted 7 years ago #

    Hello everybody!

    I've been looking thru the forums to check if there's any solution to my problem, but since I had no luck, I'm hoping you can help me out.

    I installed the theme Notepad Chaos in my WP. In the sidebar, i have this code:

    <div class="categories-upper"></div>
    <div class="categories">
        <?php wp_list_categories('sort_column=name&hierarchical=0&title_li='); ?>
    <div class="categories-btm"></div>

    But even though I have categories created, they don't appear in the sidebar. The "Categories" title does appear, with its image in the title, but no categories listed anyway.

    I've been kicking my head over this, so I would really appreciate any suggestions.

    Thank you!

  2. Kaoruki
    Posted 7 years ago #

    It's done, i have to assign at least a post to each category, if not they don't appear.

  3. soydevon
    Posted 7 years ago #

    I'm having the same problem, but it's affecting all themes I've installed. I recently upgraded to WordPress 2.6.1 and I can only assume there's some kind of bug as I've just spent about an hour on this problem and can't figure out what's wrong. I'm simply trying to get the following bit o' code to output something... anything...

    <?php wp_list_categories('show_count=1&sort_column=name&title_li=');?>

    ...and I have about 10 categories and hundreds of posts assigned to those categories. Yet, nada. I'm baffled, and I've got a decade of experience as a web developer behind me.

  4. @mercime
    Volunteer Moderator
    Posted 7 years ago #

    Could the answer be that after upgrade, you run the upgrade http://www.example.com/wp-admin/upgrade.php and then run Settings>Permalinks (to settings you had previously)?

  5. soydevon
    Posted 7 years ago #

    Nope, I upgraded by reinstalling from scratch. My permalinks are fine....just checked to be sure and the categories still don't get listed when I try to use the wp_list_categories() function. In fact, none of the themes work

  6. soydevon
    Posted 7 years ago #

    Ok, this is weirder yet. I just added a post, and suddenly the category that post belongs to...shows up in the category listing. No other categories do, just that one. Huh? All the posts I imported, are being treated as if they aren't in categories... but I checked, and they are definitely in categories. Even when I go the entry's individual page/URL, it shows at the end of the post what category this is in, so I know the system grasps the connection there.

    So why are the imported entries being treated differently than newly posted entries? I've never had that happen before.

  7. soydevon
    Posted 7 years ago #

    Quick fix...

    1. click to edit a post belonging to a category that doesn't show up in the list
    2. simply press save without changing any of the text.
    3. Now that category will show up in the category listing.

    Curiously, I've found that in manage > categories, any categories that contain only imported entries claim there are 0 entries in the category even though the page/URL for that category's entries still show all the entries associated with the category. The individual entry pages themselves also show they are in a category. This was still a problem after I upgraded to WordPress 2.6.2

    So there seems to be a bug related to imported entries not being associated into the category list, while the imported entries still know what category they are associated with.

Topic Closed

This topic has been closed to new replies.

About this Topic