Jump to content

<ul> error validation


werushka

Recommended Posts

I have the following code and it is giving me this error on validation w3

 

Error  Line 69 column 9: end tag for "ul" which is not finished.

 

</ul>

 

The code is as follows

 

<?php get_header();?>

	<div id="content">

		<!-- primary content start -->
		<?php if (have_posts()) : ?>

	<?php while (have_posts()) : the_post(); ?>
		<div class="post" id="post-<?php the_ID(); ?>">
			<div class="header">
				<div class="date"><em class="user"><?php the_author() ?></em> <br/><em class="postdate"><?php the_time('M jS, Y') ?></em></div>
				<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>					
			</div>
			<div class="entry">
				<?php the_content(); ?>
          <?php wp_link_pages(); ?>
          <?php $sub_pages = wp_list_pages( 'sort_column=menu_order&depth=1&title_li=&echo=0&child_of=' . $id );?>
          <?php if ($sub_pages <> "" ){?>
          <h3>Sub Pages List</h3>
          <ul>
            <?php echo $sub_pages; ?>
          </ul>
          <?php }?>
        </div>
			<div class="footer">
				<ul>
					<?php edit_post_link('<li class="readmore">Edit</li>'); ?>						
				</ul>
			</div>
			<?php comments_template(); ?>
		</div>	
	<?php endwhile; ?>
	<p align="center"><?php posts_nav_link(' - ','&#171; Prev','Next &#187;') ?></p>		
<?php else : ?>

	<h2 class="center">Not Found</h2>
	<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>
		<!-- primary content end -->	
	</div>		
<?php get_sidebar();?>	
<?php get_footer();?>

 

if I remove ul in the following line than it does not give me...

 

<div class="footer">
				<ul>
					<?php edit_post_link('<li class="readmore">Edit</li>'); ?>						
				</ul>
			</div>

 

how can i solve this problem.

 

I really appreciate any help

Link to comment
https://forums.phpfreaks.com/topic/53484-error-validation/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.