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
  • #28120

    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.


    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:

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


    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.