Support » Plugins » [WP Content Slideshow] custom image size

  • This gets the photos from the slideshow:

    <li id="main-post-<?php echo $counting;?>" onmouseover="'pointer'" title="<?php the_title(); ?>">
    <img src="<?php echo $thumb;?>" /></li>

    $thumb is set up just before that:
    $thumb = get_generated_thumb("content_slider");

    and the function from some other file is:

    function get_generated_thumb($position) {
    	$thumb = get_the_post_thumbnail($post_id, array(389,254), $position);
    	$thumb = explode("\"", $thumb);
    	return $thumb[5];

    How do I make it display a certain image size? I’ve got set up the ones I need in functions php. The reason is, the slideshow just resizes it, therefore is using a much bigger photo.

    I need that bigger as it is as I have some other parts where I am using it as a big image, but I would like to use a custom size and I simply don’t get it from get_the_post_thumbnail

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’ve also tried:

    get_the_post_thumbnail($post_id, 'slideshow', $position);

    as I have it set up in functions.php:

    add_image_size( 'slideshow', 389, 254 );

    I just don’t understand and it’s extremely frustrating.

    Any thoughts please?


    <?php echo get_the_post_thumbnail($post_id, array(100,50) ); ?>

    it has worked for me 🙂

    <li class="on clearfix" id="post-<?php echo $counting; ?>">
     <a href="#main-post-<?php echo $counting; ?>" title="<?php the_title(); ?>">
     <span class="slide-thumb"><?php echo get_the_post_thumbnail($post_id, array(100,50) ); ?></span>
     <?php echo cut_content_feat(get_the_title(), 50, ""); ?>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[WP Content Slideshow] custom image size’ is closed to new replies.