• Resolved Olybop

    (@olybop)


    hi, sorry for my english, i’m french.
    I need to have an information about thumbnails. As you can see on my sidebar (https://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

    https://www.ads-software.com/extend/plugins/top-10/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Olybop

    (@olybop)

    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.

    Plugin Author Ajay

    (@ajay)

    Thank you.

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

    Thread Starter Olybop

    (@olybop)

    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.

    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.

    Plugin Author Ajay

    (@ajay)

    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?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Top 10] links of thumbnails’ is closed to new replies.