Show Your Search Engine Referred Visitors Related Posts Based On Their Search KeyWords

search_engines When visitors are referred to your site from a search engine, they are definitely looking for something specific, If they don’t find what they want they might leave immediately though your blog might have have what the visitor wants but not correctly directed by the search engine.

Landing Sites, is a wordpress plugin that can help solve this problem by showing related posts based the visitors search keywords.

Follow the steps to implement the plugin in you wordpress installation.

Step 1. Download LandingSites plugin

Step 2. Upload the plugin and activate the plugin in your WP Blog.

Step 3. Add this code to your single.php file.

Find this code: <?php if (have_posts()) : while (have_posts()) : the_post(); ?> and

paste this code after the above line.

<?php if (function_exists(‘ls_getinfo’)) : ?>
<?php if (ls_getinfo(‘isref’)) { ?>
<div class=”landingsites”>
<h2><?php ls_getinfo(‘terms’); ?></h2>
<p>You came here from <?php ls_getinfo(referrer); ?> searching for <i><?php ls_getinfo(terms); ?></i>. These posts might be of interest:</p>
<?php ls_related(5, 10, ‘<li>’, ‘</li>’, ”, ”, false, false); ?>

<?php } ?>
<?php endif; ?>

Step 4. Add this code to your Style.css file and modify it according to your needs.

line-height: 15px;
border: 1px #ff9933;
border-style: double;
width: 350px;
margin: 12px 12px 12px 12px;
padding: 15px 15px 15px 15px;


Just do a search of your blog and test your landing site plugin.

I have implemented the plugin on this blog and the plugin works with WP 2.5.1

Note : for this plugin to retreive related post you need to have Related Post Plugin Installed.

Similar Post  How To Compress Images and Minify Wordpress Theme Files


  1. Nirmal Reply

    I had used this plugin for my previous theme, its a good one for showing other related posts

  2. keo Reply

    Great post m8, looking forward to more posts like this, so i bookmarked you 😉

  3. steve Reply

    Hi.. I have installed and activated the plugin on by blog, I have followed all instruction from your blog, unfortunately, it isn’t work, there is no Keywords appears when I found my articles on search engine..

    Could you please to help me.. to overcome this problems

    Best Regards,


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.