WordPress.org

Ready to get started?Download WordPress

Forums

Upgraded to WP 3.4 and the thumbnails on my home page stopped working (5 posts)

  1. cip6791
    Member
    Posted 2 years ago #

    I'm using Auto Featured Image plugin to generate thumbnails for my posts. After upgrading to WP 3.4 all the posts that had videos and thumbnails generated from youtube disappeared. I found another plugin called Video Thumbnails which created the thumbnails for all video posts but now the thumbnails are not showing on the home page. Does anybody know why this is happening? The below code was used for the thumbnails:

    <?php
          	if ( has_post_thumbnail() ) { ?>
           	<?php
                   	$imgsrcparam = array(
    		'alt'	=> trim(strip_tags( $post->post_excerpt )),
    		'title'	=> trim(strip_tags( $post->post_title )),
    						);
                        	$thumbID = get_the_post_thumbnail( $post->ID, array(235,235), $imgsrcparam ); ?>
                            <a>" class="preview"><?php echo $thumbID; ?></a>
                        	<?php } ?>

    [Moderator Note: Please post code or markup snippets between backticks or use the code button.]

  2. Richard
    Member
    Posted 2 years ago #

    Same problem :(

  3. cip6791
    Member
    Posted 2 years ago #

    yeah ... in my case a var_dump of $thumbID returns string(0) "" only for the thumbnails set from videos.

  4. AndroidChief
    Member
    Posted 2 years ago #

    I think that print_thumbnail() does not work. Is there any suggestion, my homepage is horrible!

  5. Richard
    Member
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic