English 中文(简体)
1. 家庭概况
原标题:Home Page Only Footer
问题回答

is_home(>上列出了全球的斜体,似乎并没有重新定位或重新评价,因此,pkinda 奇怪。

Try putting wp_reset_query() at the end start of your if statement code
Actually, it ll be better to call it before as we can ensure the queries are reset

<?php wp_reset_query();
if ( is_home() ) { ?>
text
<?php }  ?>

Now that the php is working, ideally you d want the code above.
text

我只看了一种观点,我可以清楚地看到,由于它意在成为固定的服务器,因此,它就没有明显可见。 The following shouldn t be there in the view sources.... wrong file being edited?

<p>
<?php if ( is_home() ) { ?> 
text 
<?php } ?>
<wp_reset_query()>
<br />
<br />

The footer.php file should be located in wp-content/themes/nameofyourtheme folder

is_home( is a means that should re real or false. 你们需要在某些地方实施这种方法。 如果博客没有为你执行这一方法,你需要这样做。 在你的网站上,我认为这一职能将做你想要的:

<?php
function is_home(){
    $r = $_SERVER[ REQUEST_URI ];
    return $r ==  /  || $r ==    || $r ==  /index.php ;
}

if(is_home()) {
?>
text
<?php } ?>

如果你想要脚步的话,我们就会说:

<?php include  footer.php ; ?>

而不是行文:

<?php get_footer(); ?>

我认为,你的问题是,把脚步看成正文,因此,现在就没有执行购买力平价。 如果你这样做,你可以像你所希望的那样,增加更多的购买力平价。

你的辛子没有什么错,当我看你的网页来源时,我看着“案文”。

贵方页的档案内容是什么? 如果是“脚步.php”,那么,我就不见对(php)开放和关闭的条件。 除非档案延期是“.php”,否则它就赢得了笔记。

关于先前的答复:

<?php wp_reset_query();?> 如果(is_home()){?>text<?php }?> in this prospects. 它是:家(家)取决于一页的 lo。 或许在某个地方,你使用习惯盘问,或者说你的一个gin子使用习惯质问, up开了缺省。 和我一样,如果发言,请在您之前再次发言。





相关问题
CSS Header and Footer are breaking on Zoom-in

I have just finished redesigning this site (www.imustsolutions.co.za) and I have a problem with the header and the footer when the user zooms in (Cntrl + in FF). Here is the problem: The background ...

Stick Footer Issue in Safari & Chrome

My sticky footer works great in all the browsers expect Safari & Chrome, particularly the work.html page itself. http://obliqueinteractive.com/creative/work.html I noticed when i delete this ...

Problem with css footer

I m having a problem with a webpage. I m using the min-height property to place the footer at the bottom of the page (if content is not long enough) and after the content (if content is longer than ...

Can i add a footer to multiple .net applications?

I would like to implement google analitycs on a website that s a mix of classic asp and various .net applications. All classic ASP pages share a footer.inc file, so that s a no brainer. However, the ....

Table footer view buttons

I have some signup form that had email and login text fields as table cells and signup button as button in footer view. That all functioned superb, here is the code frame = CGRectMake(boundsX+85, 100,...

wpf datagrid footer layout

My footer is currently composed of a label and an ItemsControl. It needs to be below 2 DataGrid controls that are similar in that they both contain a fixed width column for every day in the week and ...

热门标签