Skip Navigation

[Closed] Query custom fields with php

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 9 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

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

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 1 reply, has 2 voices.

Last updated by Adriano 9 years, 9 months ago.

Assisted by: Adriano.

Author
Posts
#233245

Hello,

I'm using Types without Views plugin.
I have a repeating custom image field and I would like to wrap the image thumbnails inside a link with the default image size.
So far, I used the types_render_field function inside my template to get the image tag in the required size, but that is not convenient if I also want the default image url.
I know I can get the default url if I use "output"=> 'raw', but how can I use that url to resize the image as types does?

#233318

Dear Nexuslab,

The "output" => "raw" is used to retrieve the value stored in the post meta table for the required field. Types stores only the image's URL in full size, so you can't use this parameter to get in different sizes. The only way you said, it is using the types_render_field one.

Please let me know if you are satisfied with my answer and if I can help you with any other related question.

The topic ‘[Closed] Query custom fields with php’ is closed to new replies.