Title: WordPress php code run in theme just specific post??
Last modified: August 31, 2016

---

# WordPress php code run in theme just specific post??

 *  [victorrest](https://wordpress.org/support/users/victorrest/)
 * (@victorrest)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/wordpress-php-code-run-in-theme-just-specific-post/)
 * Hi, how can i made a php script in my wordpress theme, which is just than run,
   when i put a value or something at a custom field in specific post?
 * Otherwise, i want to run a “the_excerpt ()” code in my theme, but i don’t want
   to show these excerpt all my website, just some specific post. This is possible,
   and if yes, how can i made this?!

The topic ‘WordPress php code run in theme just specific post??’ is closed to new
replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [run](https://wordpress.org/support/topic-tag/run/)

 * 0 replies
 * 1 participant
 * Last reply from: [victorrest](https://wordpress.org/support/users/victorrest/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/wordpress-php-code-run-in-theme-just-specific-post/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
