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)
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
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?
Nevermind, found it and fixed. Thanks. No idea how that happened but glad it's fixed.
My issue is resolved now. Thank you!