Title: Set variable from inside post
Last modified: August 19, 2016

---

# Set variable from inside post

 *  [marosell](https://wordpress.org/support/users/marosell/)
 * (@marosell)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/set-variable-from-inside-post/)
 * I have a place to echo a variable inside the page.php for my template. I want
   to be able to set that variable from inside my post, that way, if I ever need
   to change it, I can do so without editing the file.
 * How can I do this?
 * Thanks!

Viewing 1 replies (of 1 total)

 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/set-variable-from-inside-post/#post-693284)
 * A custom field?
 * [http://codex.wordpress.org/Using_Custom_Fields](http://codex.wordpress.org/Using_Custom_Fields)

Viewing 1 replies (of 1 total)

The topic ‘Set variable from inside post’ is closed to new replies.

## Tags

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

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 2 participants
 * Last reply from: [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * Last activity: [18 years, 1 month ago](https://wordpress.org/support/topic/set-variable-from-inside-post/#post-693284)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
