Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.