werushka Posted May 29, 2007 Share Posted May 29, 2007 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(' - ','« Prev','Next »') ?></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 Quote Link to comment https://forums.phpfreaks.com/topic/53484-error-validation/ Share on other sites More sharing options...
MadTechie Posted May 29, 2007 Share Posted May 29, 2007 Wrong section should be in HTML Quote Link to comment https://forums.phpfreaks.com/topic/53484-error-validation/#findComment-264359 Share on other sites More sharing options...
AndyB Posted May 30, 2007 Share Posted May 30, 2007 Take a look (view source) at the actual html generated by your script. That should show you just where the validation error occurs. Then you can track back to the php script and see where it needs correction. Quote Link to comment https://forums.phpfreaks.com/topic/53484-error-validation/#findComment-264443 Share on other sites More sharing options...
gabeg Posted May 30, 2007 Share Posted May 30, 2007 Don't you need a <li> if you start a <ul> tag? Quote Link to comment https://forums.phpfreaks.com/topic/53484-error-validation/#findComment-264445 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.