How to keep WordPress from changing & into html (&) in post titles

questions :

I am using a custom post type to track contacts. So, the post title will be something like John & Jane Jackson.

When I save the post, the & in the post title changes to & amp; (ie: John & amp; Jackson) – this would be fine if I were using the title on the frontend, but I am pulling this contact data outside of WordPress and using it for print material. So, I want the & to stay as & and not be changed to the html version.

Anyone know how to force WordPress to keep whatever text is entered into the title field without altering it to hmtl?




Answer :

Add your content in HTMl mode not in VISUAL mode, then every thing’ll be fine.
See the snap shot below…enter image description here





3 thoughts on “How to keep WordPress from changing & into html (&) in post titles”

  1. Hi to every body, it’s my first visit of this web site; this weblog contains awesome and
    really excellent data in support of visitors.

  2. It’s a shame you don’t have a donate button!
    I’d definitely donate to this fantastic blog! I suppose
    for now i’ll settle for bookmarking and adding your RSS feed to my Google account.
    I look forward to fresh updates and will talk about this blog with my Facebook group.
    Talk soon!

Leave a Reply

Your email address will not be published. Required fields are marked *