• Become a Shouter : Join here
  • X

    WordPress Related Posts With Horizontal Thumbnails For Thesis Theme

    By in Thesis Customization

    Having related posts with thumbnails at the end of your WordPress single posts page really does helps to maintain a low bounce rate.

    Most of us do like the related posts widget that linkwithin provides,but there is almost no customizations you can make in that widget.

    Here you have it horizontal Related posts(similar posts) for your WordPress blog with thumbnails with all of the customizations you want.

    Note:-Please do read this post as I have considered  almost all the possible things you folks wanted in a related post plugin such as:-

    • The plugin does not have the authors url any where displayed (so no seo problem).
    • It is far better than linkwthin widget and even much more compact.
    • You can set the size of you thumbnails to whatever you want.

    As of now this tutorial is only applicable to thesis users, but in a couple of days I shall post a tutorial for other themes too.

    Step-1 : Download plugins

    Download the similar posts plugin and post plugin library by Rob Marsh from the WordPress repository.

    Once downloaded activate the plugin and go to the output settings

    step-2

    Paste this code at the box for output

    <div id="similar-posts"><li><a href="{url}"><img src="{custom:thesis_post_image}" width="100" height="100" alt="" /></a><h1>{link}</h1></li></div>

    Wordpress Related posts

    Once you have pasted the code in their,remember to have text codes before and after the list as <ul> and </ul>

    and save the output settings.

    Step-3

    Now open your themes custom.css and paste these codes in their.

    #similar-posts li {
            margin-left: 6px;
            float: left;
            font-weight: bold;
           background: #f9fdfd;
           font-family: Times, "Times New Roman", serif;
        line-height: 1.4em;
            overflow: hidden;
    }
    #similar-posts img { float: left; border: 2px solid #222; margin-top:4px; }
    #similar-posts h1 {
    clear:left;
    font-size:13px;
    font-weight:bold;
    height:auto;
    line-height:17px;
    margin:0;
    overflow:hidden;
    text-transform:capitalize;
    width:126px
    }

    Step-4

    That done now all you need to do is place the following code  in thesis open hook “after the post hook”

    <?;php similar_posts(); ?>

    This is how your Related posts show look like:-

    Wordpress related posts with thumbnails

    As I have mentioned above that this method of displaying related posts with thumbnails works only for thesis, so please have patience as in a day or two I’ll post something that works with all the wordpress themes.

    Do let me know which plugin you are using to show related posts with thumbnail?

    Subscribe Updates, Its FREE!

    Article by

    Shoaib has written 10 articles.

    If you like This post, you can follow ShoutMeLoud on Twitter. Subscribe to ShoutMeLoud feed via RSS or EMAIL to receive instant updates.

    { 31 comments… read them below or add one }

    izzat aziz

    it look really nice, is it load fast? i’m afraid it slow down the load..

    Reply

    Shoaib Hussain

    I don’t think that it would slow down your speed,coz m using it in my blog and these plugins by rob marsh have been in existence since 08′ ,n most of all this plugin ,has its own cache so it wont do any harm to ur speed .

    Reply

    Tinh

    I will give it a try now, thanks

    Reply

    Pubudu Kodikara

    Great post bro! i have created my featured posts like this on my blog! :D

    Reply

    Shoaib Hussain

    Know it, you can do almost anything u want with the plugins that I mentioned in this post.

    Reply

    navapavan

    Thanks for sharing. Will add this

    Reply

    siddharth

    Nice idea ! Thanks

    Reply

    Shahzad

    Cant we use it for other themes?

    Reply

    Harsh Agrawal

    Shahzad for other theme you can try wp-thumbie plugin.

    Reply

    Techie Blogger

    Wp-Thumbie is very nice plugin

    Reply

    Rajesh Kanuri @ TechCats

    IMO choosing one plugin like wp-thumbie is better than using the above mentioned 2 plugins.. BTW i couldn’t stop myself appreciating u for ur coding skills..

    Reply

    Tanuj Lakhina

    Am getting this error : “Parse error: syntax error, unexpected T_STRING in /home/tlakhina/public_html/wp-content/plugins/thesis-openhook/functions.php(453) : eval()’d code on line 1″

    Don’t know what to do..?

    Reply

    Shoaib Hussain

    their is nothing much you need to do ….all you need to do is simple place
    in thesis open hook .

    Reply

    Tanuj Lakhina

    Did everything as it says. Don’t know what went wrong.

    Reply

    Shoaib Hussain

    can u gimme link to the domain you are using this on?

    Ed

    I got exactly the same problem!

    Reply

    Ed

    I just found the problem that the code here is different from that in the plugin site http://rmarsh.com/plugins/post-options/ I am not a coder so it was difficult for me to address the problem. Thanks Shoaib. It’s a cool plugin!

    Reply

    Ed

    I got a new problem that the fonts are very large and it seems changing codes in CSS doesn’t help!

    Reply

    Avinash

    This makes use of 2 plugins. Instead if you use YARPP Plugin then check this post @ http://buildinternet.com/2009/07/display-thumbnails-for-related-posts-in-wordpress/

    that shows how to use the templates in YARPP to generate image thumbnails for related posts.

    This could also be customized for Thesis Theme aswell.

    Reply

    Barbara

    You might want to check for typos in the above tutorial. It’s close, I think, but not quite workable.

    Reply

    Sonia

    Hi, I did exactly as you instructed. Great tutorial and it works!
    But, like Tanuj said I’m too getting a Parse error: syntax error, unexpected T_STRING in my website. Please tell us what to do?
    Thanks! :)

    Reply

    bigu

    Got this:

    Parse error: syntax error, unexpected T_STRING in /home/xxx/public_html/bb9700/wp-content/plugins/thesis-openhook/functions.php(595) : eval()’d code on line 1

    Reply

    Agus Suhanto

    Wow, I never thought that the template can be written freely without editing source code… I think thesis is good…

    But aside from that, I think I have something to share about YARPP too. It is not related with thesis, but only vanilla WordPress. The similarity here is the use of YARPP.

    I made a post-thumbnail also, using standard WordPress 2.9 post-thumbnail feature. And I also create overlay the image with the title of the post, on transparent background.

    The implementation details can be found here: http://suhanto.net/yarpp-template-post-thumbnails/.

    Anyway, thanks for sharing and approving my comment…

    Reply

    spicysouth

    its not working on thesis 1.8 & wordpress latest version. thumbnails are not showing

    Reply

    Prashant

    Hi friend,
    i want the plugin for writing codes in my posts… i want the same plugin that u guys are using on this site.. like grey background showing….

    thanks…

    Reply

    Kulin Shah

    not working on thesis 1.8 and wordpress 2.0.4

    Reply

    Chris

    Can you use this code but with custom:thesis_thumb instead of custom:thesis_post_image, but it doesn’t seem to work. Any ideas?

    Reply

    Anne

    Yes, you can! The code is

    {link}

    This also solves the big-text problem.

    Reply

    Anne

    Hmm, that didn’t seem to post.
    Basically, you just replace the words
    custom:thesis_post_image
    with
    custom:thesis_thumb
    and change the width and height to 66.
    This also solves the problem of the text being too big.

    Reply

    Tanuj Lakhina

    I actually am using the Thesis theme from the back end as its not designed fully. So needs admin privileges to be seen.

    Reply

    Shoaib Hussain

    ok when you’re done do lemme know where actually your are using and I’ll try solve your problem.

    Reply

    Leave a Comment

    Previous post:

    Next post:

    `