我能';不要让wordpress自定义页脚在“关于我们”页面上工作

我能';不要让wordpress自定义页脚在“关于我们”页面上工作,wordpress,Wordpress,因此,我能够使用以下代码为front-page.php获取自定义页脚: <?php if(is_page(2436)) { get_footer('two'); } else { get_footer(); } wp_footer(); ?> ``` If I try to use this code changing the page ID to the about us page and a

因此,我能够使用以下代码为front-page.php获取自定义页脚:

    <?php 
    if(is_page(2436)) {
     get_footer('two');
    }
    else {
     get_footer();
    }
     wp_footer();
    ?>
    ``` 
If I try to use this code changing the page ID to the about us page and adding it to page.php it changes my footer but it doesn't show me the footer I created.

你把第二个放在引号里。试一下不加引号的。我以前用过它,但即使没有引号也不行。我刚刚创建了一个页面模板,刚刚发现这将适用于我正在尝试的操作,只是要放弃此页面上的自定义页脚。您是否在wp配置中启用了错误报告?对于那个场景有什么特别的错误吗?没有,我没有打开它,因为我正在现场工作,但在将来会记住这一点。
<?php 
if(is_page('2286')) {
 get_footer('two');
}
else {
 get_footer();
}
 wp_footer();?>