我已经尝试了一些变体,我知道这个方法在我放入is_home的时候会起作用,即使这不是我想要实现的,但它会在每个页面上显示它。 ...如果我尝试其他任何类似于is_front_page的内容,或者像我在下面的示例中所了解的那样,我实际上正在尝试实现它,但它不会(工作!)。任何人都可以帮忙吗?有条件的if/is_page在WordPress 3.0中不起作用
<?php if (is_page('about')) { ?>
<div id="testimonial-block" class="sidebar-block clearfix">
<h4>Testomonials</h4>
<p>"I feel so much more motivated and in control of my life. The coaching has given me the time to think about what I really wanted to achieve and how I can make it happen. I have been completely blown away by how much I have enjoyed coaching with Becky and embraced the concept across my whole life."<br />
<small>Caroline Rowe, <br />
Communications Manager</small></p>
</div>
<?php } ?>
请参阅http://wordpress.stackexchange.com/ – skaffman 2010-09-02 21:50:12
请显示一些实际的代码。你并不是真的在这里问一个可回答的问题。 – 2010-09-02 21:51:45
另外,有什么与证书段落....? – 2010-09-02 21:52:27