Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Please link to the page that has the featured image, that you’re referring to.
Thread Starter
c-m
(@c-m)
It’s the default wordpress 2014 theme as shown here:
http://twentyfourteendemo.wordpress.com/2012/02/13/cu-vide-albucius-euripidis-pri/
In the demo above the actual featured image used has been pre-cropped to the exact dimensions, so it’s not really a good example.
If you have a site running the 2014 theme and you upload a featured image say that’s 1000px heigh, the theme will automatically crop the image to height 372.
On my site running a custom theme styled to look a bit like 2014, I can’t or don’t know how to replicate this automatic cropping of the featured image. http://defylife.co.uk/equipment/winter-tyre-review-heidenau-k60-silica/
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
It’s the default wordpress 2014 theme as shown here:
Note that that’s the .com demo website, not the .org. It’s not so different with Twenty Fourteen, but it may different for other themes.
Thread Starter
c-m
(@c-m)
It’sjust not working for me.
I’ve added the code below to my functions.
add_image_size( 'featured', 1024, 350, true );
That should give me an image size of 1024px by 350px.
In my template I’m calling:
<?php // check if the post has a Post Thumbnail assigned to it.
if ( has_post_thumbnail() ) {
the_post_thumbnail('featured');
}
?>
The result is an image that is 333px wide. It just doesn’t seem to make any sense.