Support » Fixing WordPress » Display description of categories in wp-admin/post.php

  • Resolved einbecker


    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 😉


Viewing 1 replies (of 1 total)
  • 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…

Viewing 1 replies (of 1 total)
  • The topic ‘Display description of categories in wp-admin/post.php’ is closed to new replies.