Skip Navigation

[Resolved] I can't assign a custom field to a Toolset block image

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

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 13 replies, has 3 voices.

Last updated by Francisco Ramón Molina Busquiel 3 years, 8 months ago.

Assisted by: Shane.

Author
Posts
#1727005

Hi,

If I use a Single Field block Toolset I can assign a custom field, but I cannot assign a custom field to a Toolset block image.
Watch the following video:
hidden link

Regards,
Jose A.

#1727257

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jose,

Thank you for getting in touch.

Would you mind allowing me to have admin access to the website so that I can have a look ?

Thanks,
Shane

#1728317

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jose,

Sorry for the delay in response. I took a look at this for you and the post type your view is targetting doesn't have any image fields on it that can be used in the image block.
hidden link

All that is there are text fields. Unless there is an image on the post you won't be able to select a field.

Thanks,
Shane

#1728449
2020-08-05_17-19-39.png

Hi Shane,

As you will see in the screenshot, this field is to indicate a thumbnail.

Regards,
Jose A.

#1728485

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Francisco,

This is not a custom field that was created with our Types plugin.

Only fields created in Types cause use the image block.

Thanks,
Shane

#1728489

Hi Shane,

From other Toolset blocks I can access that field.
Why can't I access that field from the image block.
If from the others I can there is no reason not to be able from the image block.
It is completely illogical.

Regards,
Jose A.

#1728593

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jose,

This is because the Image block is made specifically to function with types Image custom fields.

The Fields block is able to pick up any other custom fields and as you can see from the choices that the Single Field block gives it implies that you can use any custom field.

For the image block its different as the dynamic sources are only from Types custom fields or the Featured image field on your post.

You can display this field manually by using the shortcode that came with this plugin that create this field or you can do this.
[wpv-field name='sdm_upload_thumbnail']

Thanks,
Shane

#1728657

Hi Shane,

The shortcode of this plugin does not allow viewing only the image.
And the shortcode that you have indicated to me ([wpv-field name='sdm_upload_thumbnail']), as you will see on the page that I have used, does not work.
And I still think that it is a very silly limitation that you have put in your image block, it would not have cost you anything to make it admit any type of field, if that field contains a url to an image it would simply have to have displayed that image, just you have to render the html code to do that. I think that in Toolset you will have done much more complicated things.
And what's amazing is that there is no way to view an image from a field containing an image url.
It is amazing that you have not taken it into account.

Regards,
Jose A.

#1728761

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jose,

I checked the documentation for this field and the correct way should be
[wpv-post-field name="sdm_upload_thumbnail"]

Given that doing it like this will most likely render just the URL to the image, you will need to do this.

<img src= "[wpv-post-field name='sdm_upload_thumbnail']">

This will render the field as an image.

And what's amazing is that there is no way to view an image from a field containing an image url.
It is amazing that you have not taken it into account.

You have to remember that this works fine with our Toolset Types custom fields as well as Featured image fields. Custom fields created by third party means usually come with their own custom way of displaying these fields even if it is an image field.

If you were to recreate this custom field in Types you will see that the image starts to show up for selection.

Thanks,
Shane

#1728775

Yes. This works, but it is a pity that Toolset's block image module does not incorporate this functionality, since in this way the characteristics of the image could also be put.
What you have indicated to me serves briefly to show the image, anyway thank you very much for all your help Shane. 🙂

Could I put a ticket to improve this block module?

Regards,
Jose A.

#1729913

Hi, Shane is out today on a public holiday and will return tomorrow to continue assisting you. Thanks for your patience.

#1730061

Thanks Christian for the info.

Regards,
Jose

#1733193

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jose,

Happy I was able to help you out with this one.

What I can do is to put in the feature request for you.

Thanks,
Shane

#1733233

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.