Home › Forums › Add-ons › Repeater Field › Shortcodes break repeater › Reply To: Shortcodes break repeater
Thanks for reply and apologies for the large chunk of code. I did take large portions of the code out (the entire bit for the slider, the code for counting the boxes). Unfortunately this did not make a difference.
What I mean by filter, is the option under the ACF field settings, which says: “Run filter “the_content”?. Enabling this filter to use shortcodes within the WYSIWYG field”
As soon as I select ‘No’ all the rows from the repeater fields appear on the website. Obviously this does also mean that my entered shortcodes are now not executed, but they show up as [shortcode] etc. When I enable this filter (so setting on ‘yes’), the shortcodes work. When I now enter normal html data into the rows, they keep working fine.
The problems begin when I enter a shortcode in any of the rows from my repeater field. Now instead of all rows showing up on the front-end, only the first row is loaded regeardless of it’s content. If I enter a shortcode on the first row, the shortcode works fine and it displays the correct item on the front-end. But as soon as a shortcode in any row of my repeater,no other rows but the first row is loaded on the front-end.
So the problem somehow seems that shortcodes break the loop after it’s first round – but I can’t figure out why this is happening!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
ACF wouldn’t be so widely used in WordPress if it didn’t have some pretty amazing capabilities. In this article, we look at a few of the features we’ll discuss during “7 things you didn’t know you could do with ACF” at #WPEDecode later this month. https://t.co/5lnsTxp81j pic.twitter.com/Yf0ThPG1QG
— Advanced Custom Fields (@wp_acf) March 16, 2023
© 2023 Advanced Custom Fields.
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.