WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Popular Posts
Shows wrong size of thumb (9 posts)

  1. lillprinsen
    Member
    Posted 4 years ago #

    Some of my posts uses the wrong size of thumb. Check my site here. http://onyanserat.se/

    I use the option "use thumbnails selected by me" and the size 240x100

    Most of the thumbs show right but a few 150x150 as source instead.

    Can someone please help me solve this.

    Thanx.

    http://wordpress.org/extend/plugins/wordpress-popular-posts/

  2. Héctor Cabrera
    Member
    Plugin Author

    Posted 4 years ago #

    Hi lillprinsen,

    Mind sharing a screenshot of your current setup of WordPress Popular Posts? Need to see how you have configured your widget as I'm unable to reproduce the bug here.

  3. lillprinsen
    Member
    Posted 4 years ago #

    Here is the settings:

    http://onyanserat.se/wp-content/uploads/2010/07/WPPsettings.png

    thanx for the help

  4. Héctor Cabrera
    Member
    Plugin Author

    Posted 4 years ago #

    Still unable to reproduce the bug using your configuration. You'll have to help me out with some debugging, ok?

    Please download this beta version of WordPress Popular Posts 2.1.1 and install it on your blog. Let me know when you're done so I can check your site again.

  5. lillprinsen
    Member
    Posted 4 years ago #

    Now I installed the Beta version.

  6. Héctor Cabrera
    Member
    Plugin Author

    Posted 4 years ago #

    Thanks lillprinsen,

    I've checked your site's code and apparently while WordPress Popular Posts is passing the right width/height to the get_the_post_thumbnail function, for some reason it ignores the passed data on some posts and sets width/height to 100.

    I'm not 100% sure, but this could be a WordPress bug instead. Will look around and try to report it to the devs, maybe they can help us out.

    In the time being, here's a suggestion: set your thumbnails' width/height via CSS. To do so, open wordpress-popular-posts/style/wpp.css using an editor such as Windows' Notepad or Adobe Dreamweaver and change this:

    /* thumbnail styles */
    img.wpp-thumbnail {
    	border:none;
    }

    ... into this:

    /* thumbnail styles */
    img.wpp-thumbnail {
    	width:240px;
    	height:100px;
    	border:none;
    }

    That should work.

  7. lillprinsen
    Member
    Posted 4 years ago #

    Thanx but I tried that, it just stretches the image.

  8. Héctor Cabrera
    Member
    Plugin Author

    Posted 4 years ago #

    For now, there's not much I can do since this seems to be more a WordPress problem than a WPP issue. Will keep an eye on this, though.

  9. lillprinsen
    Member
    Posted 4 years ago #

    Thanx for the help. Ill go without thumbs for the time being.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic