I am trying to: place images from a repeating image field
Link to a page where the issue can be seen: hidden link
I expected to see: the normal view without field
Instead, I got: Types field in frontend.
I place in a CPT a repeating image field and place it in Content template for the CPT with
[wpv-for-each field="wpcf-weitere-bilder"][types field='weitere-bilder' alt='%%ALT%%' title='%%TITLE%%' size='medium' align='lefg' resize='proportional'][/types]
It works well if you add 3 repeating images. When you place the fourth repeating image was the complete Layout destroyed.
The images are not longer shown and the datas from toher fields on top was not longer presented. Instead of it you see the Views code directly and images and videos are not longer shown???
If i delete then again the 4th image all works perfect as before???
Hi can you try the following troubleshooting steps?
- Temporarily disable all plugins except Toolset, and activate your parent theme. Is the problem still occurring? If not, reactivate your child theme and other plugins one by one until the conflict is revealed.
- Is this the complete code? I noticed that you have used "lefg" instead of "left", you have double quotes inside double quotes, and the wpv-for-each tag is unclosed. Corrections below:
[wpv-for-each field="wpcf-weitere-bilder"]<a href="[types field='weitere-bilder' url='true' raw='true' size='full'][/types]">[types field='weitere-bilder' alt='%%ALT%%' title='%%TITLE%%' size='medium' align='left' resize='proportional'][/types]</a>[/wpv-for-each]
If neither of these solve your problem, I may need to take a look inside your wp-admin area to see what's going on.
Hi sorry for the delay getting back to you. I was able to log in but all I can access in wp-admin is my user profile. Everything else is restricted. Can you check?
Try now, short error in multisite 🙂
Hi, there seems to be some conflict in the Content Template for this page. If I replace everything in the Template for Verzeichniseinträge with only this code, the images appear as expected:
[wpv-for-each field="wpcf-weitere-bilder"]<a href="[types field='weitere-bilder' url='true' size='full'][/types]">[types field='weitere-bilder' alt='%%ALT%%' title='%%TITLE%%' size='medium' align='left' resize='proportional'][/types]</a>
[/wpv-for-each]
However, if I place that same code in the existing Content Template, shortcodes stop working. In order to determine what the conflict is, I need to add and remove code from the Content Template to try to isolate the conflicting elements. While I'm doing those tests, the design of each verzeichnis page will be changing. I will replace the original content once I'm done with the tests. Standby and I will update you soon.
great, tnx for your support!
Hi, it seemed to be having a problem with this line:
[types field='dateien' link='true' title='Hier PDF anzeigen ' separator=' '][/types]
The attribute "separator" is not supported on a file field shortcode. I'm not exactly sure why it's breaking the shortcodes on the page, but removing it seems to have resolved the issue. Can you please test it and confirm this has fixed the problem?
Supported shortcode attributes here:
https://toolset.com/documentation/customizing-sites-using-php/functions/#file
I changed it so and it works also on live System - till i place a fifth image, then it was again "broken"???
I place it in testsytem in the sample page too - and you can see that the site was again "ugly".
That's strange. Again, if I remove the rest of the content in the Content Template and include only the repeating field, 5 images appear correctly. So my guess is there's some other content in this template that is conflicting somehow, and it's probably similar to what we saw before with invalid shortcode attributes. I'm having trouble deciphering all the conditionals in this template, so I don't think I'll be able to find a solution today. I will return on Sunday, when I can take another look. If you need more assistance before that, please feel free to open a new ticket and reference this ticket for the other supporter.
Okay I'm not able to isolate a single source of the conflict here. I think the next step will be to escalate this problem to my 2nd tier support team for further investigation. In order to do that, I need to be able to replicate this issue in a local environment. However, I have not been able to replicate it so far, and since this is a multisite installation I know clones can be difficult to create. Do you have any recommendations for creating a copy of this site so I can install it locally?
Hi Christian,
sorry - was out. I will see starting tommorrow to made an additional testsystem where i remove the multisite-installation and could send you then the datas for a clone? Could you work with updraft backup data for cloning?
Yes, I believe I could work with that. I will activate private reply fields here so you can share a download link with me.
Sure, we can pick up again when you are ready. Private reply fields are enabled again here.