WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Ececute PHP code in pages? (3 posts)

  1. matthisco
    Member
    Posted 2 years ago #

    HI Folks,

    Is there a plugin that can do this?

    The only ones I've found are years old, or have no instructions how to use them.

    Many thanks

  2. Depending on what and where you are trying to execute PHP code, it may be simpler to just use a custom page template and apply template that to your page.

    http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates

    Or if you have code you want to trigger within the page content, you can try adding a short code and attach that to a PHP function.

    http://codex.wordpress.org/Function_Reference/add_shortcode

    Using a short code would provide more flexibility as to where and what your PHP output.

  3. matthisco
    Member
    Posted 2 years ago #

    Thanks very much

Topic Closed

This topic has been closed to new replies.

About this Topic