Forum Moderators: rogerd & travelin cat
<?php
get_header(); ?>
<!--Start Content Grid-->
<div class="grid_24 content">
<div class="content-wrap">
<div class="fullwidth">
<div class="content-info">
</div>
<h1> <?php echo ('Not Found'); ?> </h1>
<p> <?php echo ( 'Apologies, but the page you requested could not be found. Perhaps searching will help.'); ?> </p>
<?php get_search_form(); ?>
</div>
</div>
</div>
<div class="clear"></div>
</div>
<?php get_footer(); ?>
remove the get_header() call?
<h1> <?php echo ('Not Found'); ?> </h1>Or this? <div class="content-info">
</div>Is this a hard-coded page? There seems to be a lot of extranea.
function get_header($includeAds = true)
{
echo 'whatever';
if ($includeAds) echo 'ad code';
echo 'more whatever'
}
What is get_header() and where is it defined?
<?php
if ( is_home() ) :
get_header( 'home' );
elseif ( is_404() ) :
get_header( '404' );
else :
get_header();
endif;
?> especially the post from 5:35 pm on Jan 9, 2005 on "scope"
I should replace header-404 with just 404 in the get_header call
I've never seen a language where a variable inside a function defaults to global.Javascript. Forget a single "var" declaration, and interesting things happen. And then there are the assorted dialects of BASIC that never agree on exactly how variables work--but if you don't declare it somewhere in the general vicinity of a function, it ends up being global.