WordPress.org

Ready to get started?Download WordPress

Forums

Can you use HTML in a category description? (5 posts)

  1. buskerdog
    Member
    Posted 7 years ago #

    The documentation suggested that you could but everytime I save the category the description disappears. If I just put plain text in there it stays but I want something like
    Description: <img src="http://www.domain.com/images/artist_thumb.jpg" alt="Artist Name" />

    So that I can call category descriptions consisting of thumbnails. Any chance that can work?

  2. andersoj
    Member
    Posted 7 years ago #

    I am having exactly the same problem. It looks to me like simple styling tags (eg, <b>) work OK, but not

      tags (which is what I really need.
  3. buskerdog
    Member
    Posted 7 years ago #

    Try using custom fields instead.

  4. curiouscat
    Member
    Posted 7 years ago #

    How would custom fields work? The functionality I would like is just to have html in the category description at the top of every category page.

  5. Nikle
    Member
    Posted 7 years ago #

    The code is getting parsed somewhere and told to keep some html elements but not the img tag. The question is finding where it is doing this check and changing it. Unfortunately I am brand new at WP and haven't yet been able to find the code.
    Ideally we would have a plugin to associate an image with each category description which would automatically show up.

Topic Closed

This topic has been closed to new replies.

About this Topic