Skip Navigation

[Resolved] Site breaking when making featured image a custom size

This thread is resolved. Here is a description of the problem and solution.

Problem:

The feature image shortcode [wpv-post-featured-image] does not work as expected.

[wpv-post-featured-image size="custom" width="75" height="75" ...]

Solution:

You will need to use other beta version of Layouts plugin + CRED plugin, and the latest version of Views plugin is 2.6 RC-2, please try to install them in your website, and test again, you can download them here:
https://toolset.com/account/downloads/
Choose channel: Beta

Relevant Documentation:

This support ticket is created 6 years, 6 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 4 replies, has 2 voices.

Last updated by aaronM-9 6 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#763430
temp.jpg

I am trying to make a user profile thumbnail, set in a featured image, smaller than the normal 150x150 size. When I add class="minithumb" and create some CSS to make it 75x75, nothing seems to happen (class does not appear when inspecting the image in the browser). When I try to force it by using the code pasted below, the website seems to puke - see attached image. When I remove the "custom" attribute, everything goes back to normal with 150x150 thumbnail.

<a href="[wpv-post-url id="[types usermeta="user-profileid" format="FIELD_VALUE" user_is_author="true"][/types]"]">[wpv-post-featured-image size="custom" width="75" height="75" id="[types usermeta="user-profileid" format="FIELD_VALUE" user_is_author="true"][/types]"][wpv-post-author format="meta" meta="first_name"] [wpv-post-author format="meta" meta="last_name"]</a>
#765160

Hello,

How do you setup the custom user field "user-profileid"?

I have tried your codes in my localhost, setup "user-profileid" as a custom single line user field.
It works fine, there isn't similar problem as you mentioned above.

In case it is a compatibility problem, please try this:
1) deactivate other plugins and switch to wordpress default theme, and test again
2) If the problem still persists, please provide a database dump file (ZIP file) of your website in below private detail box, also point out the problem page URL, I need to test and debug it in my localhost, thanks

#775042

Thanks for the details, I can download and import your database dump file, where can I see the problem you mentioned above? please point out the problem page URL,

And I have checked the "Debug information" you provided, you are using Views 2.6 RC +Types 3.0 RC + Other stable version of Toolset plugins( Layouts and CRED), if you need to use Types beta version plugin, you will need to use other beta version of Layouts plugin + CRED plugin, and the latest version of Views plugin is 2.6 RC-2, please try to install them in your website, and test again, you can download them here:
https://toolset.com/account/downloads/
Choose channel: Beta

#777403

Hi Luo,

I had installed all the new beta versions as soon as they were released. It looks like 2.6-RC2 has come out since - sorry, I was unaware an update had been put out. Can you confirm this is the only one that isn't totally up-to-date? From the plugins screen (attached) it looks like this is the case.

I have deleted 2.6-RC and installed 2.6-RC2, but the problem is still occurring when I set the custom size attribute on the featured image.

- Aaron

#777434

Hi Luo,

The problem has been resolved. I tried adding the class="minithumb" attribute into the featured-image shortcode and after upgrading to Views 2.6-RC2, the featured image class attribute started taking properly. I can now control the featured image size via CSS. Thanks helping me figure it out.

- Aaron