Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   New Versions, & Updating (http://forum.bytesforall.com/forumdisplay.php?f=12)
-   -   [SOLVED] 3.4.2: where to make changes that used to be in index.php? (http://forum.bytesforall.com/showthread.php?t=2408)

bcorrigan Jul 13, 2009 10:24 AM

[SOLVED] 3.4.2: where to make changes that used to be in index.php?
 
Hi,

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>

Where is this code now?

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();
?>

and to exclude posts of certain categories on the home page, I need to add:
PHP Code:

<?php if ( is_home() AND !is_paged() ) {
query_posts($query_string "&cat=-145,-420,-435");
?>

above the loop.

Where the best place to put this code in 3.4.2?

thanks,

Bill

bcorrigan Jul 13, 2009 10:48 AM

I found the answer to my second question: ATO -> Content ABOVE the Loop.

Nice, now I don't have to make this edit at the next theme update.

bcorrigan Jul 13, 2009 10:52 AM

...and I found the solution to my first question: ATO -> Content IF NOT FOUND

so I can now update and not have to edit theme php files any more!

Thanks Flynn!


All times are GMT -6. The time now is 11:01 PM.

Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.