Forums

[resolved] HTML editor changes " to “ (3 posts)

  1. BenWhale
    Member
    Posted 2 years ago #

    Please forgive me if I say something stupid, I'm slowly learning this.

    Following the instructions of Protection_From_Harvesters I have attempted to enter code into a page on my website.

    What I enter is <a href="mailto:<?php echo antispambot(the_author_meta('user_email')); ?>">email author</a>. The page does not display properly and if I view the source I find that the code I entered has become <a href="mailto:<?php echo antispambot(the_author_meta('user_email')); ?>“>email author</a>. So the webbrowser fails to see the closing " which has been converted into .

    I realise that this is most likely to WordPresses styling of quotes. How do I prevent this? I can't seem to find documentation on it (which I think means I'm not looking in the right place).

  2. jonradio
    Member
    Posted 2 years ago #

    There is a bigger problem: you cannot enter php code in a WordPress page. There are plug-ins that allow you to insert php code into a page or post. You can also enter php code in a Template.

  3. BenWhale
    Member
    Posted 2 years ago #

    Ah I see thankyou adiant.

Topic Closed

This topic has been closed to new replies.

About this Topic