WordPress.org

Ready to get started?Download WordPress

Forums

category_description() without and tags (2 posts)

  1. orinsanee
    Member
    Posted 4 years ago #

    hello,

    i try to made new meta desciption tags for categories, and i get one problem.
    whene i use "category_description()" or evry code of show category description:
    is it show description and In the start and the end is show <p> and </p> tags.
    It's not really relevant for me, I would like to know how I can remove the <p> tags of my category description.

    this is the code of i use:

    <?php
      if (is_category())   { echo '<meta name="description" content="'.category_description().'"/>';}
       else { echo '<!-- no meta -->';} ?>
  2. orinsanee
    Member
    Posted 4 years ago #

      someone?

Topic Closed

This topic has been closed to new replies.

About this Topic