Support » Fixing WordPress » Tag List view not valid xHTML

  • 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

    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!


Viewing 2 replies - 1 through 2 (of 2 total)
  • Yup. Had the same problem.

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

    <?php if ( function_exists('wp_tag_cloud') ) : ?>
    <h2>Popular Tags</h2>
    <?php wp_tag_cloud('smallest=8&largest=22'); ?>
    <?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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Tag List view not valid xHTML’ is closed to new replies.