Title: Adding PHP to a Post
Last modified: August 18, 2016

---

# Adding PHP to a Post

 *  [thopunk](https://wordpress.org/support/users/thopunk/)
 * (@thopunk)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/adding-php-to-a-post/)
 * I am trying to get an ajax star rating plugin to work with wordpress. and i am
   trying to add it to each individual page that i create. but when i try to add
   the code
 * <?php rating_bar(‘1’,5); ?> via code view when i am writing the page, it basically
   gets deleted. how can i make this work>?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [kasiem](https://wordpress.org/support/users/kasiem/)
 * (@kasiem)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/adding-php-to-a-post/#post-515083)
 * Do you have the plug-in php-exec installed?
 * you can find it here if not:
 * [http://bluesome.net/post/2005/08/18/50/](http://bluesome.net/post/2005/08/18/50/)
 *  Thread Starter [thopunk](https://wordpress.org/support/users/thopunk/)
 * (@thopunk)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/adding-php-to-a-post/#post-515153)
 * nope, ill get that now. i assume that will fix what i need haha. thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Adding PHP to a Post’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [thopunk](https://wordpress.org/support/users/thopunk/)
 * Last activity: [19 years, 4 months ago](https://wordpress.org/support/topic/adding-php-to-a-post/#post-515153)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
