WordPress.org

Support

Support » Plugins and Hacks » [Resolved] post thumbnail code has issue

[Resolved] post thumbnail code has issue

  • Thanks for the sharing this plugin.
    There is one problem is this plugin.When user have mulitple post thumbnails.I kept this plugin on a page with wp-ecommerce plugin and thumbnail got messey .It was picking some random picture other than post thumbnail,I guess becausee wp-commerce and wp-ecommerc both using the_content filter.

    Anyway I sorted out this issue by changing one line in post-widget.php
    I thought i let you know.

    I changed this line

    echo get_the_post_thumbnail($content_post->ID);

    To
    $post_thumbnail_id = get_post_thumbnail_id( $content_post->ID);
    echo $_image=wp_get_attachment_image( $post_thumbnail_id,’post-thumbnails’,$attr );

    ( around line no 107) in
    widget($args, $instance) in post-widget.php

    http://wordpress.org/extend/plugins/custom-post-widget/

Viewing 1 replies (of 1 total)
  • Plugin Author Johan van der Wijk

    @vanderwijk

    Thank you for letting me know about this, I will investigate and if necessary add the suggested fix in the next plugin release.

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] post thumbnail code has issue’ is closed to new replies.