WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Display description of categories in wp-admin/post.php (2 posts)

  1. einbecker
    Member
    Posted 9 years ago #

    Hi! We have a group weblog with categories based on Oasis-songs (like "Cigarettes & Alcohol" for posts about going out...). Since not everyone is familiar with our meaning of the categories, its nice to have the description in the title attribute of the category link.

    And now (finally!), here comes the problem: We have some new writers who are not familiar with our categories. Thus, when writing a post, they go back and forth between post.php and the category-page.

    Is it possible to add the description as a tooltip to the categories-list on the right side of post.php?

    Thanks for your help (I searched through this site and Google, but haven't found an answer) -- and for that nice piece of software ;-)

    Tobi

  2. einbecker
    Member
    Posted 9 years ago #

    I managed to get it to do what i wanted. The answer is:

    Edit "admin-functions.php". In line 84, add:
    $result[$cat]['cat_description'] = category_description($cat);

    In line 91, change the echo-line of the write-nested-categories functions to the following:

    echo '<label for="category-', $category['cat_ID'], '" title="', $category['cat_description'], '" class="selectit"><input value="', $category['cat_ID'],

    that's it.

    And it shows me how many SQL queries wordpress is uttering to get some output -- which explains why it does not scale that well...

Topic Closed

This topic has been closed to new replies.

About this Topic