我的原始消息显示正确,但我也在页脚中收到第二条消息,我检查了所有文件并搜索了很多关于这个问题但没有得到任何结果。
这是实例:http://www.rapyemen.org/?page_id=181
任何人都可以帮助解决这个获取两条404消息的问题吗?
这是我的404.php代码:
<div id="container">
<?php
// action hook for placing content above #content
nd_abovecontent();
// filter for manipulating the element that wraps the content
echo apply_filters( 'nd_open_id_content', '<div id="content">' . "\n\n" );
// action hook for placing content above #post
nd_abovepost();
?>
<div id="post-0" class="post error404">
<div class="entry-content">
<p><?php _e( 'Apologies, but we were unable to find what you were looking for. Perhaps searching will help.', 'thematic' ) ?></p>
</div><!-- .entry-content -->
<form id="error404-searchform" method="get" action="<?php echo home_url(); ?>/">
<div>
<input id="error404-s" name="s" type="text" value="<?php the_search_query(); ?>" size="40" />
<input id="error404-searchsubmit" name="searchsubmit" type="submit" value="<?php esc_attr_e( 'Find', 'thematic' ); ?>" />
</div>
</form>
</div><!-- .post -->
<?php
// action hook for placing content below #post
nd_belowpost();
?>
</div><!-- #content -->
<?php
// action hook for placing content below #content
nd_belowcontent();
?>
</div><!-- #container -->
<?php
// action hook for placing content below #container
nd_belowcontainer();
// calling the standard sidebar
nd_sidebar();
// calling footer.php
get_footer();
?>
答案 0 :(得分:-1)
似乎没有名为118
的网页ID。
例如您的Contact Us page work fine with page id of
208`。
确保您传递的是正确的网页ID。