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.
< ?php wp_list_pages('title_li=' ); ?>
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: //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.