WordPress.org

Ready to get started?Download WordPress

Forums

WP Featured Content Slider
Images don't show (2 posts)

  1. managera
    Member
    Posted 3 years ago #

    I have been able to get the title and except show and auto scrolling but no image yet. ANy help will be appreciated

    http://wordpress.org/extend/plugins/wp-featured-content-slider/

  2. jugoretz
    Member
    Posted 3 years ago #

    Seems to be a problem with the timthumb.php that the plugin uses to crop the thumbnails. At least that was it for me. If you change line 144 in content-slider.php, you can get rid of that problem. Not sure if this is really best practice, but it did allow the images to start showing up again.

    Line 144 tries to get

    <img src="<?php echo $direct_path;?>/timthumb.php?src=<?php echo $thumb;?>&h=<?php $img_height = get_option('img_height'); if(!empty($img_height)) {echo $img_height;} else {echo "200";}?>&w=<?php $img_width = get_option('img_width'); if(!empty($img_width)) {echo $img_width;} else {echo "320";}?>&zc=1" />

    And there's something wrong with that path. I changed it to

    <img src="<?php echo $thumb;?>&h=<?php $img_height = get_option('img_height'); if(!empty($img_height)) {echo $img_height;} else {echo "200";}?>&w=<?php $img_width = get_option('img_width'); if(!empty($img_width)) {echo $img_width;} else {echo "320";}?>&zc=1" />

    and I just make sure that the images are a good size to start with.

    Would welcome any advice to do this better!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic