Skip Navigation

[Resolved] Gallery block for custom taxonomy's image field

This support ticket is created 2 years, 1 month 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.

Our next available supporter will start replying to tickets in about 0.72 hours from now. Thank you for your understanding.

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/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by Waqar 2 years, 1 month ago.

Assisted by: Waqar.

Author
Posts
#2483673
gallery.jpg

Hi, I've a CPT and a CTX. I've added a multiple image custom field to my CTX.

I built a block archive and I've added a gallery block. The image custom field is not available to select in the gallery block (see image).

I'm also interested in use the same gallery block in a content template that I will insert in a classic editor archive.

can you help me?

#2483705

Hey, I found another related issue. I tried adding the images by this shortcode:

[types termmeta='taxonomy-gallery' title='%%TITLE%%' alt='%%ALT%%' size='custom' width='320' height='254' resize='crop' separator=' '][/types]

or this:

[types termmeta='taxonomy-gallery' size='thumbnail' index='0' separator=', ' url='true'][/types]

I always get the full image size instead of the custom or thumbnail size image.

cheers

New threads created by Waqar and linked to this one are listed below:

https://toolset.com/forums/topic/split-types-fields-shortcode-always-returning-full-size-images/

#2484507

Hi,

Thank you for contacting us and I'd be happy to assist.

Your observation is correct. The use of the taxonomy term custom fields as a source in the archive blocks is not supported. We have an internal ticket for this, but, I don't have any time estimate to share at the moment.

As you've already figured out, using the Toolset Types Fields API shortcode is the way to go, to show the current term's custom field data:
https://toolset.com/documentation/customizing-sites-using-php/functions/

As for your other report about the image sizes, I've created a separate ticket for that and will follow up on that shortly.
( ref: https://toolset.com/forums/topic/split-types-fields-shortcode-always-returning-full-size-images/ )

regards,
Waqar