nested shortcodes problem
-
I have 2 shortcodes, 1 inside the other. The first is a shortcode that’s a form with prices for ordering prints. The form is the same on all my prints except for the title of the print. So I use that shortcode on all my print pages to add the form and in that form I am adding another shortcode to get the name of the print like this…
<input name=”itemname” type=”hidden” value=”[page_title] 11×8 inch unmounted print” />
It has been working really well but has suddenly stopped working. I’ve no idea why. can you help?
The form shortcode is a simple snippet type with the form code. The page title comes from a bit of php in the functions file and is also a simple snippet. At the moment [page_title] works everywhere else on the web site but not when it’s nested inside the form shortcode.
This is so weird because it was working perfectly. I wonder if an upgrade to wordpress might have caused something to change?
Any ideas?
thanks
Denise
- The topic ‘nested shortcodes problem’ is closed to new replies.