Forums

[resolved] passing code through a page (3 posts)

  1. twentytwoo
    Member
    Posted 4 months ago #

    Hi Guys,

    This problem is killing me. I'm trying to add some code to a page, of course I'm in HTML mode. Let's just say for this example I'm trying to add this:

    <?php
    Echo "Hello, World!";
    ?>

    On the front end, the page is displaying:

    Echo "Hello, World!";
    ?>

    How do I trouble shot this?

    Thanks,

  2. asechrest
    Member
    Posted 4 months ago #

    Do you mean you're trying to add this code through the WordPress post editor?

    You can't use PHP in the post editor unless you use a plugin like Exec-PHP.

  3. twentytwoo
    Member
    Posted 4 months ago #

    Oh god that's frustrating. Wish I knew that before playing around with it for a couple of hours.

    Cheers Asechrest

Reply

You must log in to post.

About this Topic

Tags