WordPress.org

Ready to get started?Download WordPress

Forums

Auto replace -amp; with & or and in post title (3 posts)

  1. pilot911
    Member
    Posted 2 years ago #

    Hi,

    I have a feed coming in via WpeMatico and the title has a amp; instead of a & (or and). Is there a way to auto correct this as the posts are created.

    I have tried Text Replace: (from Scott Reilly, aka coffee2code.)

    Using

    and => -amp;

    But this does not seem to work.

    Is there an easy way (i.e. via a pluging where i can do this, or some other cast iron method)

    Thanks in advance

    Chris

  2. Brenna
    Member
    Posted 2 years ago #

    not sure if i got it right, but
    & a m p ; equals &

    & a m p ; is a masked & and will be presented by your browser in that 'right' way.

  3. pilot911
    Member
    Posted 2 years ago #

    Hi that is what i expected but it is not happening.

    Here is an example:

    In the html post editor i have:

    back and forth

    but when i view from the front end i see:

    back -amp; forth

    Do you know what is causing this behaviour?

    Thanks for taking the time to respond.

    Chris

Topic Closed

This topic has been closed to new replies.

About this Topic