Skip Navigation

[Resolved] custom size image not working

This support ticket is created 5 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by emilyr 5 years, 8 months ago.

Assisted by: Christian Cox.

Author
Posts
#1214793

hello—
several months ago i made a view for a blog page that used a custom image size for my blog page (hidden link).

recently, the featured image has stopped working (see the broken image link on the top post, scroll down to see earlier posts working fine).

when i inspect the image, it looks like the view is adding some code to the featured image url which is why the broken link is coming up but i cant figure out why its adding this extra bit:

-1000x300.jpg

here is the code im using in my view:
[php]
<div class="news-container">
<div class="news-featured"> [wpv-post-featured-image size="custom" width="1000" height="300"]</div>
<div class="float quarter">
<div class="news-month">[wpv-post-date format="F"]</div>
<div class="news-day">[wpv-post-date format="d"]</div></div>
<div class="float three-quarters"><div class="news-title">[wpv-post-link]</div>
<div class="news-excerpt">[wpv-post-excerpt]</div></div>
</div>
<hr class='news-divider' />
[php]

can you tell me how to get my featured images to show up?

thanks!

#1215160

When you use a custom image size like this in the featured image shortcode, Types should automatically generate a resized image file with that extra text in the filename. In this case, -1000x300

[wpv-post-featured-image size="custom" width="1000" height="300"]

I'm not sure why there is an _1000x300 in the file name, though. Can you tell me more about the original image? What was the original image file name, and what was its original size?

#1215450

thanks!