• Is there a way to load a page contents within a given template, but to choose the template in the PHP code? I need this because I am trying to laod content from WordPress into a separate PHP script, and I have already loaded the WP core with this:

    define(‘WP_USE_THEMES’, false);
    require(‘../_cms/wp-load.php’);

    I would need something like show_page($pageID, $templateName) – is there such a function?

  • The topic ‘Programatically load a page template’ is closed to new replies.