Give help. Get help.

  • # February 23, 2010 at 2:53 pm

    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:

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

    # February 23, 2010 at 3:01 pm

    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)

You must be logged in to reply to this topic.