我一直在嘗試本作小時WordPress的PHP如果別人幫助
<?php
if ($_SERVER['SERVER_NAME']=='http://www.testground.idghosting.com/idi' && $_SERVER['REQUEST_URI'] == 'our-production/') {
echo '<div id="services">
<h1>Our services</h1>
<a href="<?php bloginfo(\'url\'); ?>" id="serv_productions" title="Our Productions"><span>Our Productions</span></a>
<a href="<?php bloginfo(\'url\'); ?>" id="serv_services" title="Production Services"><span>Production Services</span></a>
<a href="<?php bloginfo(\'url\'); ?>" id="serv_equipment" title="Equipment & Facilities"><span>Equipment & Facilities</span></a>
<a href="<?php bloginfo(\'url\'); ?>" id="serv_pr" title="PR & Media"><span>PR & Media</span></a>
</div>';
} else {
echo '<div> do not show</div>';
} ;
?>
,但沒有運氣...幫助將非常感激..
感謝您的UPS我didt了的print_r($ _ SERVER);命令並複製服務器,request_uri但仍不能正常工作 – 2009-07-21 17:20:38
您是否正在努力使if語句僅在www.testground.idghosting.com上運行? – 2009-07-21 18:05:00