Include_once无法在wordpress页面中使用

时间:2014-04-24 12:17:47

标签: php wordpress wordpress-plugin

您好我正在尝试将另一个文件夹中的文件包含到wordpress页面中 但是没有得到输出请帮助我并为这些查询提供适当的解决方案。

<?php
/**
 * Emily::Responsive WordPress Theme for Webhost    
 * Copyright © 2013 Nextinspire.com. All Rights Reserved
 */
?>

<div id="home-widgets">
    <div class="container">
        <div class="block1">
            <div class="FL">Register Your Domain Name</div>
            <div class="FR"><a href="/shop/domainchecker.php?search=bulkregister">Bulk Domain Search</a> | <a href="/domain/price-list-for-other-extensions/">Domain Price List</a></div>
        </di>
         <div class="block2">
                <div class="">
                    <?php echo apply_atomic_shortcode( 'domainchecker', '[whmcs-connect get=domainchecker label="'.__('Register', 'emily').'"]' ); ?>
                </div>
                <span class="wtxt">Search Domain</span>
            </div>
        <div class="block3">
        <img src="http://demo1.qualispace.com/wp-content/uploads/2013/08/in.png"><?php include_once("http://demo.qualispace.com/shop/feeds/domain_price1.php");  ?>Start from $6.99 <img src="http://demo1.qualispace.com/wp-content/uploads/2013/08/com.png">Start from $8.99 <img src="http://demo1.qualispace.com/wp-content/uploads/2013/08/org.png">Start from $8.99
        </div>
   </div>
</div><!--/#home-widgets-->

2 个答案:

答案 0 :(得分:0)

<div class="block1"/>的结束标记似乎有拼写错误。试试</div>

答案 1 :(得分:0)

您的domain_price1.php是否包含变量?如果是,则将index包含在文件顶部,然后回显变量。