Homepage › Community Forums › Legacy Theme Support › Template fails to load properly with php exec code in legacy page
Wes
The following page http://au.worldthankyouday.com/register-your-business displays 100% perfectly when viewed with agency pro theme from Studiopress
<!DOCTYPE html>
<html lang=”en-US” xmlns:og=”http://ogp.me/ns#”>
<head>
<body class=”page page-id-66 page-template-default logged-in admin-bar custom-background custom-header header-image content-sidebar legacy-blue customize-support” itemtype=”http://schema.org/WebPage” itemscope=”itemscope”>
<header class=”site-header” itemtype=”http://schema.org/WPHeader” itemscope=”itemscope” role=”banner”>
<div class=”site-container”>
<nav class=”nav-secondary” itemtype=”http://schema.org/SiteNavigationElement” itemscope=”itemscope” role=”navigation”>
<div class=”wrap”>
<ul id=”menu-primary-navigation” class=”menu genesis-nav-menu menu-secondary”>
<li id=”menu-item-335″ class=”menu-item menu-item-type-custom menu-item-object-custom menu-item-home menu-item-335″>
<li id=”menu-item-336″ class=”menu-item menu-item-type-post_type menu-item-object-page menu-item-336″>
<li id=”menu-item-304″ class=”menu-item menu-item-type-post_type menu-item-object-page menu-item-304″>
<li id=”menu-item-305″ class=”menu-item menu-item-type-post_type menu-item-object-page menu-item-305″>
<li id=”menu-item-306″ class=”menu-item menu-item-type-post_type menu-item-object-page current-menu-ancestor current-menu-parent current_page_parent current_page_ancestor menu-item-has-children menu-item-306″>
<li id=”menu-item-303″ class=”menu-item menu-item-type-post_type menu-item-object-page menu-item-303″>
<li id=”menu-item-337″ class=”menu-item menu-item-type-post_type menu-item-object-page menu-item-337″>
</div>
</nav>
<div class=”site-inner”>
<div class=”wrap”>
<div class=”content-sidebar-wrap”>
<main class=”content” itemprop=”mainContentOfPage” role=”main”>
<article class=”post-66 page type-page status-publish entry instock” itemtype=”http://schema.org/CreativeWork” itemscope=”itemscope”>
</main>
<aside class=”sidebar sidebar-primary widget-area” itemtype=”http://schema.org/WPSideBar” itemscope=”itemscope” role=”complementary”>
</div>
</div>
</div>
<div class=”footer-widgets”>
<div class=”wrap”>
<div class=”footer-widgets-1 widget-area”>
<div class=”footer-widgets-2 widget-area”>
<div class=”footer-widgets-3 widget-area”>
</div>
</div>
<footer class=”site-footer” itemtype=”http://schema.org/WPFooter” itemscope=”itemscope” role=”contentinfo”>
</div>
<div id=”fb-root” class=” fb_reset”>
<script type=”text/javascript”>
<form id=”wp-fb-ac-fm” action=”http://au.worldthankyouday.com/wp-login.php” method=”post” name=”jfb_js_login_callback_form”>
<script type=”text/javascript”>
<script type=”text/javascript”>
<script type=”text/javascript”>
<script src=”http://au.worldthankyouday.com/wp-includes/js/admin-bar.min.js?ver=3.7.1″ type=”text/javascript”>
<script src=”http://au.worldthankyouday.com/wp-content/plugins/event-espresso/scripts/jquery.pajinate.min.js?ver=3.1.35.2.P” type=”text/javascript”>
<script type=”text/javascript”>
<script src=”http://au.worldthankyouday.com/wp-content/plugins/event-espresso/scripts/pagination.js?ver=3.1.35.2.P” type=”text/javascript”>
<script type=”text/javascript”>
<script src=”http://au.worldthankyouday.com/wp-content/plugins/wp-postratings/postratings-js.js?ver=1.63″ type=”text/javascript”>
<script src=”http://au.worldthankyouday.com/wp-content/plugins/genesis-responsive-header/js/resize-header.js?ver=0.1″ type=”text/javascript”>
<script src=”http://au.worldthankyouday.com/wp-includes/js/jquery/ui/jquery.ui.core.min.js?ver=1.10.3″ type=”text/javascript”>
<script src=”http://au.worldthankyouday.com/wp-includes/js/jquery/ui/jquery.ui.widget.min.js?ver=1.10.3″ type=”text/javascript”>
<script src=”http://au.worldthankyouday.com/wp-includes/js/jquery/ui/jquery.ui.tabs.min.js?ver=1.10.3″ type=”text/javascript”>
<script src=”http://au.worldthankyouday.com/wp-content/plugins/genesis-responsive-slider/js/jquery.flexslider.js?ver=0.9.2″ type=”text/javascript”>
<script src=”http://au.worldthankyouday.com/wp-content/plugins/genesis-slider/js/jflow.plus.js?ver=0.9.6″ type=”text/javascript”>
<script src=”http://au.worldthankyouday.com/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.min.js?ver=2.0.18″ type=”text/javascript”>
<script src=”http://au.worldthankyouday.com/wp-content/plugins/woocommerce/assets/js/jquery-blockui/jquery.blockUI.min.js?ver=2.60″ type=”text/javascript”>
<script src=”http://au.worldthankyouday.com/wp-content/plugins/woocommerce/assets/js/jquery-placeholder/jquery.placeholder.min.js?ver=2.0.18″ type=”text/javascript”>
<script type=”text/javascript”>
<script src=”http://au.worldthankyouday.com/wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.min.js?ver=2.0.18″ type=”text/javascript”>
<script src=”http://au.worldthankyouday.com/wp-content/plugins/woocommerce/assets/js/jquery-cookie/jquery.cookie.min.js?ver=1.3.1″ type=”text/javascript”>
<script src=”http://au.worldthankyouday.com/wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.min.js?ver=2.0.18″ type=”text/javascript”>
<script type=”text/javascript”>
<div id=”fb-root”></div>
<script type=”text/javascript”>
<script type=”text/javascript”>
<script type=”text/javascript”>
<div id=”wpadminbar” class=”” role=”navigation”>
<div class=”backstretch” style=”left: 0px; top: 0px; overflow: hidden; margin: 0px; padding: 0px; height: 892px; width: 1263px; z-index: -999999; position: fixed;”>
</body>
</html>
When I view it through the legacy template it displays with only this amount code
<!DOCTYPE html>
<html lang=”en-US” xmlns:og=”http://ogp.me/ns#”>
<head>
<body class=”page page-id-66 page-template-default logged-in admin-bar no-customize-support custom-header header-image content-sidebar legacy-blue” itemtype=”http://schema.org/WebPage” itemscope=”itemscope”>
<div class=”site-container”>
<div id=”head-wrap”>
<header class=”site-header” itemtype=”http://schema.org/WPHeader” itemscope=”itemscope” role=”banner”>
</div>
<nav class=”nav-primary” itemtype=”http://schema.org/SiteNavigationElement” itemscope=”itemscope” role=”navigation”>
<div class=”wrap”>
<ul id=”menu-primary-navigation” class=”menu genesis-nav-menu menu-primary”>
<li id=”menu-item-335″ class=”menu-item menu-item-type-custom menu-item-object-custom menu-item-home menu-item-335″>
<li id=”menu-item-336″ class=”menu-item menu-item-type-post_type menu-item-object-page menu-item-336″>
<li id=”menu-item-304″ class=”menu-item menu-item-type-post_type menu-item-object-page menu-item-304″>
<li id=”menu-item-305″ class=”menu-item menu-item-type-post_type menu-item-object-page menu-item-305″>
<li id=”menu-item-306″ class=”menu-item menu-item-type-post_type menu-item-object-page current-menu-ancestor current-menu-parent current_page_parent current_page_ancestor menu-item-has-children menu-item-306″>
<li id=”menu-item-303″ class=”menu-item menu-item-type-post_type menu-item-object-page menu-item-303″>
<li id=”menu-item-337″ class=”menu-item menu-item-type-post_type menu-item-object-page menu-item-337″>
</div>
</nav>
<div class=”site-inner”>
<div class=”wrap”>
<div class=”content-sidebar-wrap”>
<main class=”content” itemprop=”mainContentOfPage” role=”main”>
<article class=”post-66 page type-page status-publish entry instock” itemtype=”http://schema.org/CreativeWork” itemscope=”itemscope”>
<header class=”entry-header”>
<h1 class=”entry-title” itemprop=”headline”>Register Your Business</h1>
</header>
<div class=”entry-content” itemprop=”text”>
Does your business stand by the creed of Thank You? If so registering your business with World Thank You Day will cement your commitment to the cause.
<form name=”user_details” method=”post” action=”http://au.worldthankyouday.com/getlatlong.php”>
</div>
</article>
</main>
</div>
</div>
</div>
</div>
</body>
</html>
Why is this? Any suggestions please