I'm updating from 3.2 to 3.4.2 and have to edit the 404 error message section and above the loop to exclude some categories from displaying on the home page. I am trying to find where that code is located in 3.4.2.
For the error message, in 3.2 in index.php the code was
PHP Code:
<h2><?php _e('Not Found','atahualpa'); ?></h2>
<p><?php _e("Sorry, but you are looking for something that isn't here.","atahualpa"); ?></p>
I use Dunstan-sty Error Page plug-in for an enhanced 404 error message and need to change it to:
PHP Code:
<?php if ( is_404() ) {
if (function_exists('afdn_error_page')) afdn_error_page();
} ?>
PHP Code:
<?php if ( is_home() AND !is_paged() ) {
query_posts($query_string . "&cat=-145,-420,-435");
} ?>
Where the best place to put this code in 3.4.2?
thanks,
Bill