[Plugin: Smarty for WordPress] Passing multiple variables through admin panel
-
I am using your WordPress plugin “Smarty for WordPress”, and I am developing a WordPress site for another company. That company does not want to touch the PHP WordPress code, but they want to use Smarty templates. I have seen that with your plugin I can pass a single variable using the following code:
[smarty-display tpl=template_prueba.tpl name=name value = “Roman”]
This is a very useful way to pass variables through the admin panel, but how can I pass more than one? If my client wants to pass more than one variable, do they have to write code into index.php file?
Could I maybe pass an array, something like this? (doesn’t work):
[smarty-display tpl=template_prueba.tpl name=Variables value=”array(‘name’ => ‘Roman’, ‘surname’ => ‘Hervas’)”]
and the template:
{* Smarty *}
Hello {$Variables.name} – {$Variables.surname}, welcome to SmartyThank you very much.
The topic ‘[Plugin: Smarty for WordPress] Passing multiple variables through admin panel’ is closed to new replies.