Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Category Description broken after 4.9 Update

Discussion in 'Misc WordPress Requests' started by tiotdev, Nov 18, 2017.

  1. tiotdev

    Guest

    Category Description broken after 4.9 Update, by tiotdev

    Hi there!
    I am using

    <?php echo wp_trim_words( category_description($cat->term_id), 22, '...' ); ?>

    To return the category description in the custom loop

    <?php global $post; foreach (get_categories( $catargs ) as $cat) : ?>

    on the front page. This function is broken since the 4.9 update.
    I tried replacing category_description with term_description (I got the also broken category links working by replacing get_category_link by get_term_link), but the output is still empty.

    Category Description broken after 4.9 Update
     
    #1

Share This Page

Web Hosting