Title: [Plugin: Smarty for WordPress] Passing multiple variables through admin panel
Last modified: August 19, 2016

---

# [Plugin: Smarty for WordPress] Passing multiple variables through admin panel

 *  [DarthRoman](https://wordpress.org/support/users/darthroman/)
 * (@darthroman)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/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
   Smarty
   _
 * Thank you very much.

The topic ‘[Plugin: Smarty for WordPress] Passing multiple variables through admin
panel’ is closed to new replies.

## Tags

 * [multiple](https://wordpress.org/support/topic-tag/multiple/)
 * [smarty](https://wordpress.org/support/topic-tag/smarty/)
 * [variables](https://wordpress.org/support/topic-tag/variables/)

 * 0 replies
 * 1 participant
 * Last reply from: [DarthRoman](https://wordpress.org/support/users/darthroman/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-smarty-for-wordpress-passing-multiple-variables-through-admin-panel/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
