WordPress.org

Ready to get started?Download WordPress

Forums

Tag List view not valid xHTML (3 posts)

  1. Monark
    Member
    Posted 6 years ago #

    Greetings, my first post so be nice until I learn the nuances of this forum.

    I tried many searches but to no avail on this particular issue.

    I am calling the tag cloud as a list view in my sidebar with the following code

    <?php wp_tag_cloud('format=list') ?>

    on this website http://personal-ethics.org/

    It comes back as not valid xhtml with the following error

    Line 249, Column 31: document type does not allow element "ul" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.
    <ul class='wp-tag-cloud'>

    I cannot see where I may have messed up since it works with the list view called. Is there a place that I can fix the template that makes the tag cloud and submit it to the bug base? Does any of that make sense?

    Thanks in advance for your help!

    Mark

  2. azsportshub
    Member
    Posted 6 years ago #

    Yup. Had the same problem.

  3. archshrk
    Member
    Posted 6 years ago #

    Using the Tag Cloud code below produces a tag cloud in my sidebar.

    <?php if ( function_exists('wp_tag_cloud') ) : ?>
    <li>
    <h2>Popular Tags</h2>
    <ul>
    <?php wp_tag_cloud('smallest=8&largest=22'); ?>
    </ul>
    </li>
    <?php endif; ?>

    However, the site is not xhtml compliant.

    Using the code above, I get a column instead of the cloud. If I remove the li and ul tags I get the cloud but not valid xhtml. How do I fix this?

Topic Closed

This topic has been closed to new replies.

About this Topic