Skip Navigation

[Gelöst] image caption

This support ticket is created vor 5 Jahren, 9 Monaten. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

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)

Dieses Thema enthält 21 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Waqar vor 5 Jahren, 9 Monaten.

Assistiert von: Waqar.

Author
Artikel
#1187703

Hi waqar, good day.
i am using the code from here to fetch the image caption:
https://toolset.com/forums/topic/image-custom-field-into-sliders/#post-581696

but it seems its working on for the first 3 images, fourth images it produce strange characters.

Do you have any idea why ?

my field is image, repeat field.

is there any other direct way of using image caption ? thank you .

#1187704

My previous ticket i just found:https://toolset.com/forums/topic/flexslider-captions-for-single-image-field/

i am now using swiper .

#1187785
#1187933

Hi more info.

i have 2 views. both same just the field name different.

its working here:versteckter Link

but not here:
versteckter Link

i guess you need to see backend site., ive enable the login for you , pls use the same login as before. thank you .

the code snippet is here:
versteckter Link

i am guessing its something got to do with the swiper js itself. let see.

#1188189

Hi Dee,

Thank you for waiting and for sharing the updates.

Based on what you've shared, I checked both pages, that you mentioned.

The slider was showing on the first page ( versteckter Link ), but not on the second one ( versteckter Link ).

During troubleshooting, I noticed that the layout assigned to the second page was "Landed House Detail View" ( versteckter Link ), which was calling the slider's content template as:


<div class="pad30">[wpv-post-body view_template="landed-dv-swiper-slider"]</div>

But in your content template's list, I couldn't locate any content template with this name or slug.

I've updated the slug of this template to the closest match "dv-swiper-slider" and the slider is now showing on the second page too.
( screenshot: versteckter Link )


<div class="pad30">[wpv-post-body view_template="dv-swiper-slider"]</div>

I hope this helps.

regards,
Waqar

#1188193

Hi waqar. this is not the issue what you fixed is my testing editing a while ago. apologies on that. you can see the issue here now :

versteckter Link

will wait for the update as this is live site. thank you .

#1188197

Not sure if you fully understand my issue , let me explain clearly again.

i am using the custom code from here:https://toolset.com/forums/topic/image-custom-field-into-sliders/#post-581696

to display image caption for repeating field images. i have 2 of those now but will have more.

not sure if i need custom fn for each of the image repeat field.

#1188754

Hi waqar, we wasted 2 days just on this issue alone.
i need to move on as you too..
do you have any findings why this field/function behave like this ?

ill try to use the same image field as other cpt see if there issue persist.

#1188758

update: repeating image field with 4 images has issue on the caption
make me thinking the shortcode can only be used for one field ?

why only 3 images no issue but more then 3 has issue?

#1188772

not sure if this is issue with the swipper slider script , i am now testing with other better slider , flickity

#1188779

Hi Dee,

Thank you for waiting and for sharing the updates.

I can confirm the same as you observed and it seems that shortcode [ts_caption] and the Swipper slider script seems to be working correctly, but the issue seems to be with the number of results returned inside the "wpv-for-each" loop block for the image fields.

When multiple instances of the image fields are present the shortcodes inside the "wpv-for-each" block (e.g. [ts_caption] & [incrementor] ) are not treated as shortcodes and are output as regular text.

Due to the complexity of the issue, I'll need to perform few tests around "wpv-for-each" shortcode and multiple instances of image fields, on my test website. I'll share my findings with you, as soon as that testing is completed.

For now, I'll recommend checking server's error logs to see if there are any errors/warnings recorded, related to timeout or resource consumption. You can also test this again, after increasing max execution time and allowed memory size, in your server's PHP settings.

regards,
Waqar

#1188782

Hi.

There is no error on the log file. ive spoken to my host they said its not due to server settings, max exec time etc.

Thanks.

#1188831

Hi.
some updates:
can you check this again:versteckter Link

it seems its a swiper issue, no such issue on the flickity slider. can you confirm ? but the caption is not fetching the individual yet,. need to look at it deeper.

#1188965

Hi , any update , if no solution could you escalate the issue or pass to others etc ?

#1189509

Hi Dee,

I apologize for the delay but this issue seemed to be more complex than originally anticipated.

I'll have a detailed update to share with you shortly. Thank you for your patience.

regards,
Waqar