Support » Themes and Templates » category_description suddenly doesn't work

  • Hi!

    i have a problem i can’t solve for hours 🙁
    suddenly the function category_description () doesn’t show anything. i can’t find out the reason. does anybody know how to find out what the reason is?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I forgot to mention that i moved my website to another server and changed the theme. maybe it has something to do with the permalinks? because i had troubles with them, too. i had first to switch the settings to standard and than back to get them work.

    hmm. stupid. the categories never had any descriptions. i had them only in an other theme.
    than i found out i wasn’t actually looking for the description but the name of the current category loop. that what i found here in the forum and what solved my problem:

    <?php $term = $wp_query->queried_object;
    echo $term->name ; ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘category_description suddenly doesn't work’ is closed to new replies.