Title: [Plugin: Shortcode Exec PHP] Passing parameter with shortcode
Last modified: August 20, 2016

---

# [Plugin: Shortcode Exec PHP] Passing parameter with shortcode

 *  Resolved [taggie](https://wordpress.org/support/users/taggie/)
 * (@taggie)
 * [14 years ago](https://wordpress.org/support/topic/plugin-shortcode-exec-php-passing-parameter-with-shortcode/)
 * Just installed the plugin and using it with php written by someone else – my 
   php knowledge is very limited, I know enough just to tweak it.
    The code is working
   fine when I set a variable, e.g. $t = 125; at the top of the php block. (The 
   variable is used to get data from a table – which it is doing fine) But I want
   to pass 125 (or other values) in as a parameter. I would appreciate advice on
   how to pass it in – and anything I need to add to the php block so $t uses it.
 * Thanks very much.
 * [http://wordpress.org/extend/plugins/shortcode-exec-php/](http://wordpress.org/extend/plugins/shortcode-exec-php/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [taggie](https://wordpress.org/support/users/taggie/)
 * (@taggie)
 * [14 years ago](https://wordpress.org/support/topic/plugin-shortcode-exec-php-passing-parameter-with-shortcode/#post-2765172)
 * Now Googled / learnt enough to have worked it out. Thanks for reading.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Shortcode Exec PHP] Passing parameter with shortcode’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/shortcode-exec-php.svg)
 * [Shortcode Exec PHP](https://wordpress.org/plugins/shortcode-exec-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcode-exec-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcode-exec-php/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcode-exec-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcode-exec-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcode-exec-php/reviews/)

## Tags

 * [parameter](https://wordpress.org/support/topic-tag/parameter/)
 * [variable](https://wordpress.org/support/topic-tag/variable/)

 * 1 reply
 * 1 participant
 * Last reply from: [taggie](https://wordpress.org/support/users/taggie/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/plugin-shortcode-exec-php-passing-parameter-with-shortcode/#post-2765172)
 * Status: resolved