Title: Pass a variable
Last modified: August 20, 2016

---

# Pass a variable

 *  [Mattthew](https://wordpress.org/support/users/showaltermatt/)
 * (@showaltermatt)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/pass-a-variable/)
 * Does anyone know how to pass a variable to a custom post template? I can put 
   it in custom fields, or put in the post somehow. I want to have hard posts that
   use variables for the post template. So say it shows a list of movie theaters
   in a town, I want to be able to enter the zip code that my post template uses
   as a variable, but I want to have regular posts for those, not put it as a variable
   in the url of a single post. Thanks!
 * [http://wordpress.org/extend/plugins/custom-post-template/](http://wordpress.org/extend/plugins/custom-post-template/)

Viewing 1 replies (of 1 total)

 *  [disawish](https://wordpress.org/support/users/disawish/)
 * (@disawish)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/pass-a-variable/#post-3169216)
 * Hi Matthew did you have any luck for the problem?i would be interested if you
   find any solution. Thank you

Viewing 1 replies (of 1 total)

The topic ‘Pass a variable’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-post-template.svg)
 * [Custom Post Template](https://wordpress.org/plugins/custom-post-template/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-post-template/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-template/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-template/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-template/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-template/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [disawish](https://wordpress.org/support/users/disawish/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/pass-a-variable/#post-3169216)
 * Status: not resolved