Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End WordPress – To use PHP-Exec Plugin or Create New Template

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #28120
    Submerge
    Member

    I have a page that needs some PHP executed on it. The page can use the Custom template that I built for the website, that other pages use as well. But WordPress does not allow for PHP to be executed from pages/posts. The page that needs PHP to be executed is a simple Site Map, and here is the PHP I need executed.

    Code:

    Now for best practice, should I create a new template that specifically works with the Site Map page? Or should I use the Custom template that I am using for the page already, and multiple other pages on the site, but install Exec-PHP plugin so I can execute PHP from the page? Exec-PHP can be found here: http://wordpress.org/extend/plugins/exec-php/

    This is only my second site that I am programming into WordPress, so I am still relatively new to working with WordPress.

    #71462
    TheDoc
    Member

    I don’t think it comes down to best practice, I think it comes down to preference.

    Personally, I would create a new template.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.