• Thank you for this very good theme !

    Anybody knows how to display category description ?

    After a click on a category, just under “Category:Bicycles (for example)”, before posts…

Viewing 3 replies - 1 through 3 (of 3 total)
  • No responses ? ??

    Mark

    (@seemarkgeek)

    HI folks. I wanted to do something similar and have achieved the following result for category descriptions which you can see in action here: https://www.thisgeeksgoals.com/lego.

    To do this, I added the following code to the archive.php file that comes with the theme.

    <br/><br/><?php echo category_description( $category_id ); ?><br/>

    I added this directly after:

    <?php elseif ( is_category() ) : ?>
    				<?php printf( __( 'Category: %s', 'fukasawa' ), '' . single_cat_title( '', false ) . '' ); ?>

    So I ended up with:

    <?php elseif ( is_category() ) : ?>
    				<?php printf( __( 'Category: %s', 'fukasawa' ), '' . single_cat_title( '', false ) . '' ); ?><br/><br/><?php echo category_description( $category_id ); ?><br/>

    I hope this helps.

    M

    Thread Starter fredoclavier

    (@fredoclavier)

    Thank you very much. I will try.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to show the category description ?’ is closed to new replies.