Variables really variable with shortcode?
-
Hi,
How can i pass a dynamic value to the statement if this dynamic value is not available before the user opens the page?(the serialized php way is to difficult for me)
I tryed to do something like this (in a Site):
[insert_php] Some code to get the tribeid of the actual user... echo "[wpdatatable id=1 var1=".$row['tribeid']."]"; [/insert_php]Unfortunately this doesn’t work. The variable is not passed to the SQL statement.
If you give a static value to this variable, then it works.
I really do not understand why it works when i add a static variable, but it doesn’t work when im getting the variable with some php code?Is there a way to do what i tryed with the above code? I need real dynamic tables with real variables which are changeable at runtime (changeable by php code in this site).
Thanks and best regards,
Toni
The topic ‘Variables really variable with shortcode?’ is closed to new replies.