WordPress.org

Support

Support » How-To and Troubleshooting » category description isn't displaying in my loop

category description isn't displaying in my loop

  • perthmetro

    @perthmetro

    Can someone tell me why my category description isn’t working in this loop?

    Thanks heaps,
    Pete

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    <?php if( get_post_meta($post->ID, "brochure", true) ): ?>
    
    <strong style="text-align:center;" >Download the <?php echo category_description(); ?> PDF Products Brochure <a title="<?php echo category_description(); ?> Brochure.pdf" href="../wp-content/uploads/<?php echo category_description(); ?>.pdf">HERE</a></strong>
    
    <?php else: ?>
    
    <?php endif; ?>			
    
    <?php endwhile; else: ?>
    
    <?php endif; ?>
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘category description isn't displaying in my loop’ is closed to new replies.