• Monark

    (@monark)


    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 https://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

Viewing 2 replies - 1 through 2 (of 2 total)
  • azsportshub

    (@azsportshub)

    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') ) : ?>
    <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?

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