I have a Flexible content field with some layouts inside, one of them is a WYSIWYG field that is executing a shortcode in a particular page. That shortcode executes a loop that lists some categories and some posts.
The thing is, that WYSIWYG gets prepended to any other layout included in the page. The problem seems to be the foreach() that the shortcode is using, any shortcode will work and keep the WYSIWYG layout in it’s current order, except for the ones that include a foreach() loop.
Any way to fix it?
Nevermind, I just fixed it by using a relationship field.