LJ Longtail SEO

LJ Longtail SEO is a tool that detects search engine visits and uses this information to display a list of links based on second page search results.

The results in the database are aged off based on customizable settings so that once your longtail keywords have been boosted they will fall off the list and give way for other searches.

Admin interface has an optional keyword report that can be turned on via an option (On a large blog it is possible that there could be a performance hit on the admin page when using this option. Please note this will not slow down the blog side, just the admin page.). The keyword report will show the Top 100 keywords ordered by popularity and also showing the number of times the keyword has occurred.

As of Version 1.5 the plugin you can now add keywords to an Ignore list. This means if you don’t want a certain keyword registering as a referred search term you can simply put the phrase into the Ignored Keywords list and it will no longer register.

A widget will display a list of the popular searches that have come from search engine result pages beyond the first and provide a link on your sidebar back to the pages found.

Using this method can help to increase traffic to a blog via bring more importance to the Longtail keywords that can be used to find a site.

The original idea for this plugin was taken from SEO Booster Lite and Second Page Poaching – Advanced White Hat SEO. I used the other plugin for a short period of time and didn’t like a few of the restrictions. Therefore I decided to make my own, there will be no Pro version or paid version. The version I release here is in production on my main blog. Any updates I make there will end up here including bugfixes.

This plugin currently only registers search results from Google, Bing, Yahoo, and Ask. It is compatible with both of Googles current referrer information meaning you should always have accurate SERP positioning results.

Available from the WordPress Plugin Gallery

54 replies on “LJ Longtail SEO”

Hey – thanks for such a cool plugin, it’s a really neat idea. One little request though – could you provide some hints or a method to style the results, and maybe even an option to display the widget only to admins? Thanks again, Roger

What kind of styling would you like? The widget should conform to whatever the theme specifies.

With regards to showing the widget only to admin users, it kind of defeats the whole point of the plugin. The plugin is designed so that your second page and further search results get more attention. You could just not have the plugin added to your sidebar and easily see the results still in the admin interface.



The searches listed are sitewide. Therefore there would be no point in having it listed after the post (you could have a theme that provides sidebar support below the post to show them there?).

Having said that, the relevant information is stored in the database with regards to individual posts and the search terms that found them.

I may consider this to be added as a feature in a future release.



@Jon Smith
My apologies – I was able to do all the styling I wanted by adding various “#lj-longtail-seo {}” declarations to the main stylesheet. And yes, I see what you mean about not wanting to hide the widget. Thanks again for a great plugin.
Cheers, Roger

I get this error once installed and cannot make it work — any ideas anyone ?

Fatal error: Call to undefined function register_sidebar_widget() in /home/garagewi/public_html/wp-content/plugins/lj-longtail-seo/lj-longtail-seo.php on line 31

2.8 is currently the only way forward. The issue with register_sidebar_widget will stop the plugin from being used below this version.

Please upgrade your wordpress installations, in the mean time I will look into the backward compatibility issues and hopefully get it working for version below 2.8.

Great plugin! Thanks.

It would be useful if there was a way to delete specific keywords from appearing. I have a dog site and i’m getting some inappropriate (adult themed, yet dog related- we’ll leave it at that) results that i don’t want on my site.

@The English Bulldog Guy
I have just released Version 1.5 to the WordPress.org plugin gallery. This version has an option to ignore keywords and to retrospectively remove keywords from the database.

I also noted on your site that the Widget did not conform to your theme properly. I have hopefully fixed this as well.



@Jon Smith
wow just saw the update! thanks! talk about quick service.

also i installed this on another site of mine and i’m getting very long alphanumeric codes in the results all starting with 2 underscores. just non-technically guessing here but it looks like it’s similar to the post ids from feedburner in google reader.

Amazing plugin, thank you for your hard work. One of my websites in running a highly configured wordpress template that makes utilizing sidebar widgets very difficult. Is there a way to call this plugin with php and avoid the widget installation?

I was thinking something along the lines of a php include() would be best, but may be able to use something else.

Thanks again, I have used this plugin and similar ones on other wp blogs with great success. These longtails are to often overlooked, but are great for increasing numbers!

@Andrew Porter
Firstly is the fatal error still occurring? If so to reactivate your blog please delete or rename the lj-longtail-seo folder inside wp-content/plugins directory.

Can you provide a copy of the error message when you activated.



@Andrew Porter
I have just installed a fresh clean version of 2.8.4 and was able to activate the plugin successfully.

Are you on a hosted plan? Does the database user have permission to create a new table in the database?




first of all thanks a lot for the Plugin. Its wonderfull and its FREE!!!

I have the following “problem”.
At my page in Plugin Menu at the section (Top 10 Search Queries) are shown the last 10 queris.. but at the section (Links that will be shown in widget) ther’s nothing πŸ™ and i can’t display the widget coz its a blank..
Is this normal? Should i wait for links to generate or what? πŸ™‚

Thx in advance


You will need to wait for the plugin to register search results.

If you leave the plugin enabled but dont have the widget in your sidebar it will start collecting the information it requires.

Give it a couple of days.



This is a really, really wonderful plugin!

But i noticed two things:
– Sometimes there are 2 or 3 links for the same page. This is senseless, because a rule in SEO says “first anchortext counts”. So I would prefer to keep just one of them. The others are irrelevant to Google.
– My Blog is in German, i’m not sure if you’re using stoppwords, but if: is it possible to set a path in the configuration panel ? And if not: it could result in slightly better results ;o)

[LJ Longtail SEO Admin]
“Configure your stoppwords file : input=stoppwords_de.php”

return array(‘and’,’or’,’but’, …);

return array(‘und’,’oder’,’aber’, …);

I really like to help you with that. Just drop me a line and attach the latest dev.

Hi Jon,
sorry for bothering you again but i have a question..

The plugin is working about 2 weeks and it collects all. The Keywords and the Top 10 last queries. At Links that will be shown in the widget there’s a problem. THe last 2 days shows me there only 1 link…. today it shows me 1 link too, but different from that in the past days.. It took the old one away… but is still 1 link showing there..
Is this normal too?

Go into the Admin Screen from LJ Longtail SEO, then in the Settings section there is an ignored words list. This list is to be comma separated. Any words that appear on this list are not registered for search. For example if

Ignored Words = “cat, somethingelse”

Then the search term “the cat sat on the mat” would be ignored.

Hope that helps.


I am trying to activate the plugin but it came up with this message:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /nfs/c04/h01/mnt/60279/domains/thejacoblog.com/html/wp-content/plugins/lj-longtail-seo/lj-longtail-seo.php on line 13

using a shared host and I can manually create a db through the host admin interface. The site is thejacoblog.com

but the plugin works without adding in the sidebar?
because I want to first collect a list of keywords and then show in sidebar ….


Put simply mine works the way I want it to work. I found SEO Booster Lite to be extremely buggy, it also made bad choices about the way SERP results were decided upon.



FYI, this plugin work for me with WordPress 2.9.2. I hope you will make update for this plugin to make this plugin more powerful.

Anyway, how to show link more than 10 in my sidebar? I use theme function, not the widget.

Thank you, Sir.

Thank you for this plugin !

But I can’t figure this out : what is “Age Weighting” inside the dashboard ? I was wishing it was the serps position for that keyword, but i really have no idea what it is ! lol

thank you

Hello there, one question..
I have in the “Top 10 Search Queries” 10 results.
But shown in the widget only one result.
Why is that, isn’t there enough data? But why since it already collected 10 results..

The only this I can assume from that is that one result is the only one coming from the second page of results or further back. The other 9 that are registered and showing in the admin interface would have come from page 1 results, this is intended behaviour.

Give it time and the rest of the list will populate.

there are just search results from Google.com, or? it would be great when there are also results for google.de/.at/.ch

The plugin will automatically pick up on google.* bing.* and yahoo.* the only problem is if those locales use a different query string for the search engine.



is there anyway to return the preferred keywords in the list ? say you are optimizing for long tail, and you want to focus on that term specially, is it anyway to bring it forth from the resulting array ?


Thanks for the great plugin! I would like to ask if it’s possible to show more than 5 results. I’m using this: to display the results on my site bar, but it shows only 5 links.

Thanks again!

P.S. the PHP code has disappeared:
if (class_exists(‘LJLongtailSEO’)) {

Hi, I just activated the plugin on a 3.0.5 install of wp and used the template tag you provided to display the results after the posts content. However, I was wondering how many terms will it display in a week or so, because I’d like to only display 5 or 10 terms, and not all of those in the admin panel. Is there a way to control the number of terms displayed using the template tag?

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.