Skip Navigation

[Resolved] Bug in image url output for types data

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

This topic contains 4 replies, has 2 voices.

Last updated by donC-3 1 year, 8 months ago.

Assisted by: Waqar.

Author
Posts
#2583761

I've got two pages where the image urls output from the types shortcode (below) doesn't output the full url to the image. I can't even find the ".jpg" in the database. I'm guessing it's stored somewhere other than in the posts table or I'm looking wrong.

you can see it at hidden link

The code outputting it is:

echo wpv_do_shortcode('
    [wpv-for-each field="wpcf-additional-image-1"]
        <div class="additional-image">
[types field=\'additional-image-1\' size=\'medium\' resize=\'proportional\' alt="[types field=\'additional-image-1\' output=\'raw\']"]
        </div>
    [/wpv-for-each]
');

It works on everything else but these aren't right so only guess is there is data somewhere else causing it? I looked in the posts table data for the post ids and the parent post ids (ones with parent entries seem to match the images but they are png and have full urls to the pngs)

#2583919

Hi,

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

From looking into the page's code, it seems some incorrect image URL/path is stored in the 'additional-image-1' custom field value.

Can you please test the Toolset Fields API shortcode directly and see what it returns?


[types field="additional-image-1" output="raw"]

This will show exactly what is stored for this custom field, in the database. And if the correct image URLs are not saved, you can save the image values again to fix this.

I hope this helps and let me know how it goes.

regards,
Waqar

#2584141

I output from one and got:

image5.jpg image7.jpg image8.jpg hidden link hidden link hidden link

So where is this data saved that I can manually fix it?

#2584177

Nevermind, found it and fixed. Thanks. No idea how that happened but glad it's fixed.

#2584179

My issue is resolved now. Thank you!