WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Disappearing Code (4 posts)

  1. Raquel Wilson
    Member
    Posted 7 years ago #

    I am trying to add a form to one of my WP Pages. However, the hidden input tags are deleted when I save the page. I've tried adding the form to the page a few different ways (copying + pasting directly into the Page editor, c+p into the Page HTML editor, using a PHP include to pull the code into the page from an outside page hosted on the same site), but nothing seems to work.

    Does anyone have any suggestions for other solutions to get the form on the page without the tags being deleted?

  2. vkaryl
    Member
    Posted 7 years ago #

    Disable the rich text (wysiwyg) editor, from wp-admin/users/your profile page - scroll down, bottom left corner, uncheck the box.

  3. MichaelH
    Member
    Posted 7 years ago #

    Just in case you need this--to put php code in a post or page look at:

    RunPHP Plugin
    http://www.nosq.com/2004/10/runphp-wordpress-plugin/
    Don't forget to check the "run PHP code?" box on the Write Post and Write Page area.

    CG-QuickPHP
    http://www.chait.net/index.php?p=310
    QuickPHP is really targeted for single function calls or include statements (it does one 'method', with a parenthesized parameter list), constant arguments. But including a php script is then really easy, or calling a function (like any basic WP func..).

    The author, David Chait, uses it for embedding things like CG-FeedRead feeds, or wacky CG-Amazon stuff (since CG-Inline already has an amazon tag).

    PHPExec Plugin
    http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/

  4. Raquel Wilson
    Member
    Posted 7 years ago #

    Thanks to both of you! I actually did a different work around for it and created a new template for the specific page with the form. It only needs to appear on one page, so everything should be ok for now.

    Thanks for the links to the PHP plugins, I'll make note for future use. I'm sure they will come in handy.

Topic Closed

This topic has been closed to new replies.

About this Topic