Problem with nested shortcodes
-
Hi there again,
I have some issues with nested shortcodes, as there is a form I need to show repeatedly from the 10th to 25th, every second month (1,3,5,7,9,11), every year.
This is what I have:
[time-restrict-repeat type="annually" onmonth="January" ondate="10" offmonth="January" offdate="26" else="Lebensmittel k?nnen zur Zeit nicht bestellt werden."] [time-restrict-repeat-2 type="annually" onmonth="March" ondate="10" offmonth="March" offdate="26" else="Lebensmittel k?nnen zur Zeit nicht bestellt werden."] [time-restrict-repeat-3 type="annually" onmonth="May" ondate="10" offmonth="May" offdate="26" else="Lebensmittel k?nnen zur Zeit nicht bestellt werden."] [time-restrict-repeat-4 type="annually" onmonth="July" ondate="10" offmonth="July" offdate="26" else="Lebensmittel k?nnen zur Zeit nicht bestellt werden."] [time-restrict-repeat-5 type="annually" onmonth="September" ondate="10" offmonth="September" offdate="26" else="Lebensmittel k?nnen zur Zeit nicht bestellt werden."] [time-restrict-repeat-5 type="annually" onmonth="November" ondate="10" offmonth="November" offdate="26" else="Lebensmittel k?nnen zur Zeit nicht bestellt werden."] [caldera_form id="CF591eb3cced9b9"] [/time-restrict-repeat-6] [/time-restrict-repeat-5] [/time-restrict-repeat-4] [/time-restrict-repeat-3] [/time-restrict-repeat-2] [/time-restrict-repeat]
The problem is that it works fine and as expected as long as I don’t nest more than 3 shortcodes (Januar, March, May). After adding the fourth shortcode (July), it displays the form (as expected) and the fourth shortcode above the form. If I add another shortcode (September), this one is displayed above the form as well.
Isn’t it possible to nest more than three shortcodes, and if so, is there another way to solve my task?I really hope this isn’t another stupid mistake again, but I tried this for hours now and really don’t know what to do. So any help is really appreciated again. ??
- The topic ‘Problem with nested shortcodes’ is closed to new replies.