Wordpress Auto tagging in blogger

Tuesday, 14 June 2011

You have seen the auto tagging link in wordpress, which is very efficient for bounce rate. But unfortunately blogger doesn't provide auto tagging. So today I wrote this post for those who want to add auto tagging in blogger with a simple piece of code.



Here is steps : 
#1 Open your template in word editor .

#2 Add this line before </head>
<script src="http://dinhquanghuy.110mb.com/autotag.js" type="text/javascript"></script>

#3 Find this line <b:if cond='data:blog.pageType == &quot;item&quot;'>
and look down ,you will see this code :
<p>
                                             <data:post.body/>                                 
                                         </p>
replace it with
<p>
                                         <div expr:id='&quot;summary&quot; + data:post.id'>
                                             <data:post.body/>
                                         </div>        

                                         <script type='text/javascript'>
                                             highlightSearchTerms('blogging',true,'http://www.geekspalace.com/','summary<data:post.id/>');
                                             highlightSearchTerms('SEO',true,'http://www.geekspalace.com/','summary<data:post.id/>');
                                         </script>                                         
                                     </p>

take a look at the texts in bold . In this text ,"blogging" and "SEO" is the text that script will find to add link , "
http://www.geekspalace.com/" is the link .
You can add more anchor text and link with this structure  
highlightSearchTerms('text you want to add link',true,'link','summary<data:post.id/>'); 
The script will find "text you want to add link" in your post and place a link "link" on this text .



This script is not as much as the wordpress have but alternatively good for blogspot platform, where this widget is absent.


Thanks to Simplexdesgin for the code



This post is written by Ifham khan you can catch him on
Share this article on :

Recent post

Error loading feed.
Related Posts Plugin for WordPress, Blogger...
 
© Copyright 2010-2011 Where geekers meet All Rights Reserved.
Facebook Facebook | Twitter Twitter | RSS RSS.