WordPress.org

Ready to get started?Download WordPress

Forums

Top 10 - Popular posts plugin for WordPress
[resolved] [Plugin: Top 10] links of thumbnails (6 posts)

  1. Olybop
    Member
    Posted 2 years ago #

    hi, sorry for my english, i'm french.
    I need to have an information about thumbnails. As you can see on my sidebar (http://blog.gaborit-d.com/) i have top 10 installed well but the plugin dont link the "good" thumbs.
    In my admin i created a thumb automaticly when i upload a picture name 'post-thumbnail" in function.php. The picture is ok but when i put 'post-thumbnail' or "large" or "medium" on "post thumbnail meta field" nothing appened.
    My question is what the code to link on wordpress thumbs ?
    thx a million for that.
    Best
    Olybop

    http://wordpress.org/extend/plugins/top-10/

  2. Olybop
    Member
    Posted 2 years ago #

    update : i found the solution.
    I made a change in the plugin on top10.php

    juste remplace the line :
    $output .= get_the_post_thumbnail($result->ID, array($tptn_settings[thumb_width],$tptn_settings[thumb_height]), array('title' => $title,'alt' => $title, 'class' => 'tptn_thumb', 'border' => '0'));

    by

    $output .= get_the_post_thumbnail($result->ID, 'thumbnail');

    it works...
    Thx for this nice plugin.

  3. Ajay
    Member
    Plugin Author

    Posted 2 years ago #

    Thank you.

    One question:
    Is there a reason you prefer to use 'thumbnail' instead of the height and width?

  4. Olybop
    Member
    Posted 2 years ago #

    in my case i use "custom-thumbnail" (a new size i put in function.php) and i use it because the size not working for me :( the plugin don't link my custom-thumb when i put it on ""post thumbnail meta field"
    and the size only take the height.

  5. rhythmdoctor
    Member
    Posted 1 year ago #

    Ajay... this (what he describes and fixed for his) is the main issue I have with your plugin. Is this something you plan to add to future versions? With wordpress allowing custom thumbnail image sizes, it would be much better to utilize those vs. tinythumb.

  6. Ajay
    Member
    Plugin Author

    Posted 1 year ago #

    I think I'm missing something here in the implementation. The way the plugin is built is to first dig out the featured image and if that is missing then you move on to other methods.

    As far as I understand, WordPress allows you one size of the thumbnail image, which is ideally what you should fill in the Top 10 settings page.
    I've noticed that if these don't match then you end up with WordPress serving a full size image instead of a thumbnail. I could be wrong on this one.

    There is also a plugin filter which uses timthumb to resize the images, which I believe could be overdoing it. I can test the implementations on my blog without the filter.

    Am happy to implement a universal solution. Any suggestion on this?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags