Quantcast
Channel: polylang – WordPress.org Forums
Viewing all articles
Browse latest Browse all 11471

okko on "[Plugin: Polylang] Featured images not shown (title and content translated fine)"

$
0
0

Hey,

I had exactly the same problem... I didn't fix the plugin. I just deleted/commented this code :

$thumb   = get_post_thumbnail_id();
  $img_url = wp_get_attachment_url( $thumb,'full' ); //get full URL to image (use "large" or "medium" if the images too big)
  $image   = aq_resize( $img_url, 1090, 535, true ); //resize & crop the image

I added manually in functions.php the new size
add_image_size( 'slide', 1090, 535, true );

I think you'll need to rebuild your thumbnails, I suggest you to use this nice plugin : AJAX Thumbnail Rebuild

Finally put the function of the thumbnail
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( 'slide' ) ?></a>
instead of
<div data-src="<?php echo $image;?>">

Ok, it doesn't solve the plugin bug, but it helps me for now :)


Viewing all articles
Browse latest Browse all 11471

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>