Title: Sidebar validation issues
Last modified: August 18, 2016

---

# Sidebar validation issues

 *  Resolved [Bodhipaksa](https://wordpress.org/support/users/haecceity/)
 * (@haecceity)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/sidebar-validation-issues/)
 * My sidebar has validation issues, mostly with `<li>` elements. See: [http://validator.w3.org/check?uri=http%3A%2F%2Fwww.bodhipaksa.com%2Fblog%2F](http://validator.w3.org/check?uri=http%3A%2F%2Fwww.bodhipaksa.com%2Fblog%2F)
   for a report.
 * I’ve poked around can’t figure out what the problem is. The sidebar code is at
   [http://pastebin.com/656734](http://pastebin.com/656734).
 * Any help much appreciated.

Viewing 16 replies (of 16 total)

[←](https://wordpress.org/support/topic/sidebar-validation-issues/?output_format=md)
[1](https://wordpress.org/support/topic/sidebar-validation-issues/?output_format=md)
2

 *  Thread Starter [Bodhipaksa](https://wordpress.org/support/users/haecceity/)
 * (@haecceity)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/sidebar-validation-issues/page/2/#post-373084)
 * The problem was some code that I think I largely copied from another post on 
   the forum — but maybe I messed it up myself. The nonvalidating version was:
 * `<ul><?php query_posts('cat=6&order=ASC&showposts=-1'); ?>
    <?php if(have_posts()):
   while(have_posts()) : the_post(); ?> <li><a href="<?php the_permalink(); ?>">
   <?php the_title(); ?></a> <?php endwhile; endif; ?></li> </ul>
 * Which should have read:
 * `<ul><?php query_posts('cat=6&order=ASC&showposts=-1'); ?>
    <?php if(have_posts()):
   while(have_posts()) : the_post(); ?> <li><a href="<?php the_permalink(); ?>">
   <?php the_title(); ?></a></li> <?php endwhile; endif; ?> </ul>
 * It was the `</li>` that was the problem.
 * It was interesting how one glitch could cause multiple instances of nonvalidation.

Viewing 16 replies (of 16 total)

[←](https://wordpress.org/support/topic/sidebar-validation-issues/?output_format=md)
[1](https://wordpress.org/support/topic/sidebar-validation-issues/?output_format=md)
2

The topic ‘Sidebar validation issues’ is closed to new replies.

## Tags

 * [validation](https://wordpress.org/support/topic-tag/validation/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 16 replies
 * 3 participants
 * Last reply from: [Bodhipaksa](https://wordpress.org/support/users/haecceity/)
 * Last activity: [20 years, 1 month ago](https://wordpress.org/support/topic/sidebar-validation-issues/page/2/#post-373084)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
