Title: Adding code to posts
Last modified: August 19, 2016

---

# Adding code to posts

 *  [mrcenturian](https://wordpress.org/support/users/mrcenturian/)
 * (@mrcenturian)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/adding-code-to-posts/)
 * I am trying to learn how to use this script and have run into a problem when 
   I try to add something like
 *     ```
       <limit GET HEAD POST>
       order allow,deny
       deny from 58.14.0.0/15
       allow from all
       </limit>
       ```
   
 * I try to put it in the code tags but it removes the
    `<limit GET HEAD POST>` 
   and `</limit>` how do Make it so it will display this correctly in the post?

Viewing 1 replies (of 1 total)

 *  Thread Starter [mrcenturian](https://wordpress.org/support/users/mrcenturian/)
 * (@mrcenturian)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/adding-code-to-posts/#post-683414)
 * With some help it has been resolved here was the solution
 * adding the “& l t ;” and “& g t ;” without the spaces
 * These replaced the <>

Viewing 1 replies (of 1 total)

The topic ‘Adding code to posts’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [mrcenturian](https://wordpress.org/support/users/mrcenturian/)
 * Last activity: [18 years, 2 months ago](https://wordpress.org/support/topic/adding-code-to-posts/#post-683414)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
