• First off, I am a noob. So, please take it easy on me. I want to make the category_description visible when I navigate to the category.

    I modified the category-template.php to modify the function from:

    function category_description( $category = 0 ) {
    //return term_description( $category, ‘category’ );
    }

    to:

    function category_description( $category = 0 ) {
    echo category_description( $category_id );
    //return term_description( $category, ‘category’ );
    }

    However, the category description is still not visible. Can anyone please help?

    Thanks,
    Nash

Viewing 1 replies (of 1 total)
  • I honestly don’t have a category.template.php on my version so I don’t know if you created or have a old version.

    I went to archive.php and find this code
    <?php elseif ( is_category() ) : ?>
    <p><?php _e(‘★ Project ★’,’hitchcock’) ?></p>
    <h4><?php echo single_cat_title( ”, false ); ?></h4>

    And add bellow it <div class=”category-description”><p><?php echo category_description(); ?></p></div>

Viewing 1 replies (of 1 total)
  • The topic ‘Make category_description visible’ is closed to new replies.