Tag List view not valid xHTML (3 posts)

  1. Monark
    Posted 8 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!


  2. azsportshub
    Posted 8 years ago #

    Yup. Had the same problem.

  3. archshrk
    Posted 8 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic