• Resolved Thulefoth

    (@thulefoth)


    I’m a new user, made a few posts assigning them to a pre-selected category-structure. Then I assign links related to a post to the same category. But soon, I noticed that not all my categories were displaying in the link-creation form. I now have 19 categories, but only 7 show up when I enter a new link – always the same 7. When I make a new post, all 19 categories are available.

    I’ve read & hunted for several days, cruised & searched the forums, but I’m stumped. Does anyone recognize what my problem is?

    Thank you!

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

    (@thulefoth)

    I have added some more categories, assigned posts to them, they show up on the website (except for the few that don’t have content..).

    When I write a new post, I have all the categories (now 25) available in the Editor Category-dbx to select from. But when I add a new link, the dbx contains (still) only 7 – though now one of the 7 is one of the newly-added categories.

    Can someone please advise whether I am off-track somehow, or point to a resource with the information I can use to get all my categories to display in the Edit Link subpanel Category-dbx when I make a new link? Thanks!

    That is the way WordPress is intended to work. You can ‘manually’ add a Category to your Links and then it will show on your list of available Categories.

    Post categories and blogroll categories are stored in different database table you’ll have to add the same categories under your posts and blogroll management.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    jeremyclark: No, that’s not the case as of 2.1 and up.

    Anyway, the 2.1 behavior is confusing, I know. I’ve tried lobbying to get it changed, but the developers all seem to just want to try to make it even more confusing. It’s rather annoying, actually. Maybe the new taxonomy stuff will help, but I don’t have any hopes about it at this point, as I think they’re headed in the wrong direction.

    Anyway, the short of it is this:
    -The Write page will show you categories that already have posts in them.
    -The Link Add page will show you categories that already have links in them.
    -Both pages will also show you categories that have no posts nor links in them (totally empty categories).

    So if you make a category and then post in that category, it won’t show up on the links page anymore.

    But here’s what you really want though: How to fix this stupid and annoying behavior.

    First, you need to edit wp-admin/admin-functions.php.

    Find the function return_categories_list.
    Change its return statement to this:
    return $wpdb->get_col( "SELECT cat_ID FROM $wpdb->categories WHERE category_parent = $parent ORDER BY link_count DESC" );

    Find the function return_link_categories_list.
    Change its return statement to the exact same thing as above.

    Result: all categories show up in both places, all the time. It makes the thing a whole lot easier to use. Yes, it’s a core hack, but still, sometimes you have no choice.

    Thread Starter Thulefoth

    (@thulefoth)

    Ohh .. 2 database tables .. faked me out, seeing my Links-count listed in the Category-Manage panel .. thought, Sure looks like 1 set of categories! But no .. yes, I could do the double-entry like MichaelH says … and appreciate jeremyclark13’s tip.

    But I like the core-hack better – it’s what I want – thanks Ott42!

    I’m not a code-genius, but I can turn compost if given a fork & detailed instructions! ??

    this core-hack helped me too.
    i actually thought the links/categories issue was a bug !

    now, everything works fine ??
    thanks

    I am sort of starting a new topic but related to the posts in this section. I don’t what is happening with my blog.
    I have the 2.1 WordPress blog platform if that makes a difference to my problem.

    When I submit a new post nothing shows up on the homepage, of the blog,(index.php)even when I don’t check a catagory for the post to be posted to, also I am showing two default catagories. I have no idea why. All my catagories show up on the blog, and I have no error messages, and everything seems to be working fine, except nothing shows up when I post except when I click a catagory for the post to show up in, but that is not the index page.

    I hope I have made myself clear, in explaining this problem, because I am throughly confused.

    Regards,
    Debbie

    same as nadavkav here …

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Link-categories don’t all show’ is closed to new replies.