My site is basically a Pinterest style product catalogue with atleast one image per post.
I upload large images, thumbnails of which are automatically generated by wordpress BUT the website has been loading really slow because the_content
tag by default uses the largest thumbnail image that I choose from the "media" tab while creating the post.
Is there any way to use the smaller thumbnail but link to the larger thumbnail on click?
edited to add: I use the Pinboard
theme.
I appended the following in functions.php
:
add_theme_support('post-thumbnails');
set_post_thumbnail_size(280, 800);
and this in loop.php
:
if ( has_post_thumbnail() ) {
the_post_thumbnail();
} else {
echo("-");
}
but it shows the else part on the website, so I assume it isn't finding the image used?
Thanks!
media
tab, then create a post andattach
the uploaded image. Although the image shows fine on the homepage but it shows thefull
version although I can see underuploads
that wordpress has generated all sizes.