Pass more vars along to inserted page
-
Is there a way to pass along more variables?
Example:
– Mother page includes the same button 20 times.
– The button page awaits a different target url (like a placeholder e.g.)My solution so far:
– I use the insert-php plugin to pass a $GLOBALS[‘target-url’]; var to the sub page.Problem with my solution:
– I pass the $GLOBALS[‘target-url’]; 20 times, but all the buttons get the same target url as a result
– They all get the value of the last $GLOBALS[‘target-url’]; that appears in the code
– So to me it looks like the insert-pages shortcode isnt parsed 1by1 but rather all at once after all the different code has already loaded.Is there anybody that can help me?
Thanks in advance!!
- The topic ‘Pass more vars along to inserted page’ is closed to new replies.