• Hello!

    I’m trying to display the category description on the category archive pages, but the tag that I found isn’t working.

    I’m using <?php echo category_description(...); ?> in category.php, but the description does not appear. Am I doing something wrong?

    Here’s my category.php:

    <?php
    	if ( isset( $_GET['blog_type'] ) )
    	{
    		if ( $_GET['blog_type'] == 'simple' )
    		{
    			get_template_part( 'blog', 'simple' );
    		}
    		elseif ( $_GET['blog_type'] == 'masonry' )
    		{
    			get_template_part( 'blog', 'masonry' );
    		}
    		else
    		{
    			get_template_part( 'blog', 'regular' );
    		}
    	}
    	else
    	{
    		$blog_type = get_option( 'category_archive_type', 'Regular' );
    
    		if ( $blog_type == 'Simple' )
    		{
    			get_template_part( 'blog', 'simple' );
    		}
    		elseif ( $blog_type == 'Masonry' )
    		{
    			get_template_part( 'blog', 'masonry' );
    		}
    		else
    		{
    			get_template_part( 'blog', 'regular' );
    		}
    	}
    ?>

    Can you help me? Thanks! ??

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Display category descriptions on archive pages’ is closed to new replies.