Be Studios

Intercontinental Design Firm

This is our knowledge center. Enjoy!

WordPress: cleaner Category Description

The situation, if you enter something as category description, get the valua using:

<?php echo category_description(); ?>

Then, maybe you want to use it without those ugly

tags:
<?php echo trim(strip_tags(category_description())); ?>

Link: http://codex.wordpress.org/Function_Reference/get_category

#Comments

lance: Thanks!