[Plugin: WP PHP widget] Can't validate xhtml
When I enter
<?php thesis_widget_recent_posts('', 'Recent Articles', '10'); ?>I am unable to validate on w3.org. I get this error
Line 337, Column 80: document type does not allow element “li” here; missing one of “ul”, “ol” start-tag
</div><div class=”widget”> <div class=”textwidget”> <li class=”widget”>
What can I do about this? I also run
<p>Copyright© 2003–<?php echo date('Y'); ?></p>in another instance of the widget and it runs fine and validates. So I am not sure where to go from there.
- The topic ‘[Plugin: WP PHP widget] Can't validate xhtml’ is closed to new replies.