WordPress.org

Ready to get started?Download WordPress

Forums

prevent urlencode for php loop code? (4 posts)

  1. thinkstorm
    Member
    Posted 5 years ago #

    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

  2. kzutter
    Member
    Posted 5 years ago #

    Did you ever get an answer to this?
    kzutter

  3. thinkstorm
    Member
    Posted 5 years ago #

    no, never... I also never figured it out ;) sorry for the lag, didn't add this to my favorites before...

  4. gudlyf
    Member
    Posted 4 years ago #

    If it's the way you're grabbing the post's title, this may help: WordPress double urlencode problem solved

Topic Closed

This topic has been closed to new replies.

About this Topic