How to customize the Yet Another WordPress Related Posts Plugin for SEO

Yes, I’m on an SEO kick.

After using the SEO for Firefox X-ray tool I noticed my site’s header tags were all over the place.

I’d gotten my metadata, titles, permalinks, and duplicate content SEO optimized.  My post and page titles are h1 tags.  I have h2 tags thanks to the Breadcrumbs NavXT plugin customizations I made.  I’ve told myself I’ll use h3 and h4 tags in my posts.  Now all I need are h5 and h6 tags to complete my rainbow of html header tags…

How to customize the Yet Another WordPress Related Posts Plugin for Search Engine Optimization!

html for Yet Another WordPress Related Posts Plugin for SEO:

php /*
List template
This template returns the related posts as a comma-separated list.
Author: mitcho (Michael Yoshitaka Erlewine)
*/
?>
<div class="clearfix"></div>  <!--clear floats at the end of the post -->
<div id="<span class=">endpost">      <!--wrap everything in the yarpp-template-list.php file in a new div--></div>
	<p>Get Ready for eBooks next year!</p>
		<!--add the <span class="hiddenSpellError" pre="the ">h5</span> tags to something you want SEO attention for-->
	<h5><a href="http://drho.ro/promotion-management-with-wordpress" title="Promotion Management With WordPress eBook">Promotion Management With WordPress eBook</a></h5>
<h5><a title="Marketing Research With <span class=" href="http://drho.ro/marketing-research-with-tumblr">Tumblr eBook">Marketing Research With Tumblr eBook</a></h5>
	<p>Related DrHo.ro Posts:</p>
		<!--add the <span class="hiddenSpellError" pre="the ">h6</span> tags to your related posts-->
php if ($related_query->have_posts()):
	$postsArray = array();
	while ($related_query->have_posts()) : $related_query->the_post();
		$postsArray[] = '
<h6><a rel="bookmark" href="'.get_permalink().'">'.get_the_title().'</a></h6>
<!-- ('.get_the_score().')-->';
	endwhile;

echo implode(' '."n",$postsArray); // print out a list of the related items, separated by commas

else:?>

<p>No related posts.</p>
endif; ?>
</div>
<!--rejoice-->

css for Yet Another WordPress Related Posts Plugin:

#endpost p {font-size:180%;}

#endpost h5 a {padding-left:25px; line-height: .5em; font-size:75%}

#endpost h6 a {padding-left:25px; line-height: .5em; font-size:75%}

What do you think?  I’m not an SEO expert, but I’m happy with my metadata, titles, permalinks, duplicate content, and now header tags.

Damn you comment section, damn you!
firefox search engine optimization tool

Comments are closed.