Title: prevent urlencode for php loop code?
Last modified: August 19, 2016

---

# prevent urlencode for php loop code?

 *  [thinkstorm](https://wordpress.org/support/users/thinkstorm/)
 * (@thinkstorm)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/prevent-urlencode-for-php-loop-code/)
 * Hello,
    I’ve got a code like this in my WP loop: `echo "<a href='http://test.
   com/?status=\"This is not URL encoded\"'>";` However, after loading the webpage,
   the source code looks like `echo "<a href='http://test.com/?status=\"This%20is%
   20not%20URL%20encoded\"'>";`
 * Is there a way to disable WordPress’ automatic urlencode of code? Or is this 
   a “feature” of one of my plugins?
 * Thanks, Thorsten

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

 *  [kzutter](https://wordpress.org/support/users/kzutter/)
 * (@kzutter)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/prevent-urlencode-for-php-loop-code/#post-883160)
 * Did you ever get an answer to this?
    kzutter
 *  Thread Starter [thinkstorm](https://wordpress.org/support/users/thinkstorm/)
 * (@thinkstorm)
 * [17 years ago](https://wordpress.org/support/topic/prevent-urlencode-for-php-loop-code/#post-883180)
 * no, never… I also never figured it out 😉 sorry for the lag, didn’t add this 
   to my favorites before…
 *  [gudlyf](https://wordpress.org/support/users/gudlyf/)
 * (@gudlyf)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/prevent-urlencode-for-php-loop-code/#post-883186)
 * If it’s the way you’re grabbing the post’s title, this may help: [WordPress double urlencode problem solved](http://clak.us/ce)

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

The topic ‘prevent urlencode for php loop code?’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [href](https://wordpress.org/support/topic-tag/href/)
 * [link](https://wordpress.org/support/topic-tag/link/)
 * [loop](https://wordpress.org/support/topic-tag/loop/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [url](https://wordpress.org/support/topic-tag/url/)
 * [urlencode](https://wordpress.org/support/topic-tag/urlencode/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [gudlyf](https://wordpress.org/support/users/gudlyf/)
 * Last activity: [16 years, 9 months ago](https://wordpress.org/support/topic/prevent-urlencode-for-php-loop-code/#post-883186)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
