Title: Putting php code in Post
Last modified: August 19, 2016

---

# Putting php code in Post

 *  Resolved [tanishqa](https://wordpress.org/support/users/tanishqa/)
 * (@tanishqa)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/putting-php-code-in-post/)
 * I am new to wordpress. I have made a website [http://eazeenet.in](http://eazeenet.in)
   where i would like to put some php code in the post. But the code is not getting
   execute. instead the php code is displayed as a article.
 * Thanks in advance for any help

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

 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/putting-php-code-in-post/#post-1069540)
 * You can’t use PHP in posts….
 * From a security stand-point, that would make no sense at all.
 * If you mean display code on the page, then i’d suggest syntax-highlighter plus..
   
   [http://wordpress.org/extend/plugins/syntaxhighlighter-plus/](http://wordpress.org/extend/plugins/syntaxhighlighter-plus/)
 *  Thread Starter [tanishqa](https://wordpress.org/support/users/tanishqa/)
 * (@tanishqa)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/putting-php-code-in-post/#post-1069688)
 * Thanks for the prompt reply.
    I want to use different php script for my posts.
   I could still do it by putting the php code in index.php. but I was looking for
   a simpler solution.
 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/putting-php-code-in-post/#post-1069690)
 * Try: [http://wordpress.org/extend/plugins/exec-php/](http://wordpress.org/extend/plugins/exec-php/)
 *  Thread Starter [tanishqa](https://wordpress.org/support/users/tanishqa/)
 * (@tanishqa)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/putting-php-code-in-post/#post-1069811)
 * Thank you iridiax. this is what i was looking for

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

The topic ‘Putting php code in Post’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [tanishqa](https://wordpress.org/support/users/tanishqa/)
 * Last activity: [17 years, 1 month ago](https://wordpress.org/support/topic/putting-php-code-in-post/#post-1069811)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
