i would i enter that code into my site the homepage is made up of several files home.php sidebar.php l_sidebar r_sidebar header and footer etc etc
Ok. Find the following line in your code, <p> <img src="http://www.generalmarketingblog.com/wp-content/uploads/2008/01/002_09.jpg" alt="002_09.jpg" align="left" /><span>So you have decided you want to have an opt-in newsletter, but remember it is not only about sending your readers your latest newsletters or catalogs. There are a lot of things to consider avoiding having any complications. There are lots of ways to get readers to opt-in to your list, but there are also things you want to avoid to stop them wanting to opt-out of your list. <a href="http://www.generalmarketingblog.com/3-things-you-must-not-do-when-emailing-your-list#more-69" class="more-link">Read the story »</a></p> Code (markup): and add a </span> tag before the </p> That should sort it!
Follow the Validator report -- There is a missing span closure on line 198. Once you fix that as follows ......... Read the story »</a></span></p> .......... the page will validate -- the XML errors cascade from the error above and will disappear when it is fixed. James
Well that's what i said, anyway, OP the error will probably not be on line 198 as your code is split into diff files, if you cannot find the correct line post the .php files here.
No, there is only the one document being Validated -- I corrected the error on line 198 and the document passed re-validation. For Grouse: It seems you have now added some more </span> elements incorrectly on other lines, thus the increase of Validation errors to ten. I have corrected them all and sent the valid code to you via e-mail. James
i`m back to 6 errors now here is the offending file <?php get_header(); ?> <div id="content"> <div id="homepage"> <div id="homepageleft"> <div class="featured"> <?php $recent = new WP_Query("cat=4&showposts=1"); while($recent->have_posts()) : $recent->the_post();?> <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2> <?php the_content(__('Read the story »'));?><div style="clear:both;"></div> <?php endwhile; ?> </div> <div class="featured"> <?php $recent = new WP_Query("cat=12&showposts=1"); while($recent->have_posts()) : $recent->the_post();?> <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2> <?php the_content(__('Read the story »'));?><div style="clear:both;"></div> <?php endwhile; ?> </div> <div class="featured"> <?php $recent = new WP_Query("cat=197&showposts=1"); while($recent->have_posts()) : $recent->the_post();?> <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2> <?php the_content(__('Read the story »'));?><div style="clear:both;"></div> <?php endwhile; ?> </div> </div> <div id="homepageright"> <div class="section"> <h2>Blogging Tips</h2> <?php $recent = new WP_Query("cat=4&showposts=4"); while($recent->have_posts()) : $recent->the_post();?> <b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b> <?php the_content_limit(130, ""); ?> <div class="hppostmeta"> <p><?php the_time('F j, Y'); ?> | <a href="<?php the_permalink() ?>" rel="bookmark">Read the story »</a><span/></p> </div> <?php endwhile; ?> </div> <div class="section"> <h2>Website Promotion</h2> <?php $recent = new WP_Query("cat=12&showposts=4"); while($recent->have_posts()) : $recent->the_post();?> <b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b> <?php the_content_limit(130, ""); ?> <div class="hppostmeta"> <p><?php the_time('F j, Y'); ?> | <a href="<?php the_permalink() ?>" rel="bookmark">Read the story »</a></p> </div> <?php endwhile; ?> </div> <div class="section"> <h2>Other Headlines</h2> <?php $recent = new WP_Query("cat=10&showposts=4"); while($recent->have_posts()) : $recent->the_post();?> <b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b> <?php the_content_limit(130, ""); ?> <div class="hppostmeta"> <p><?php the_time('F j, Y'); ?> | <a href="<?php the_permalink() ?>" rel="bookmark">Read the story »</a></p> </div> <?php endwhile; ?> </div> </div> </div> <?php include(TEMPLATEPATH."/sidebar.php");?> </div> <!-- The main column ends --> <?php get_footer(); ?> Code (markup):
I owe you (and nicangeli) an apology -- I didn't check your original post thoroughly enough and missed that you were trying to find out what errors in your PHP file were causing your XHTML document to fail Validation. I just corrected the line 198 Validation error which of course produced a successful re-validation. Sorry. I did spot one error in the PHP code (above quoted extract) -- it should be: <div class="hppostmeta"> .......... Read the story »</a></span></p> James