HeyJDad!
It's the index.php that's contained in the Atahualpa root directory "shepherdjim.com/wp/wp-content/themes/atahualpa332/index.php"
In Ata 332 -- currently running at
http://www.shepherdjim.com/
index.php has 347 lines
In Ata 342
the new index.php has 40 lines (obviously been some big changes in what index.php is doing!!)
The full index.php in Ata 332 running on the site has 425 lines because, as I said, I've inserted "custom code" -- the block is in place immediately following:
<?php get_header(); ?>
When I insert the same block of code in the new (Ata 342) index.php the site breaks.
Here's the block of "custom code":
<!-- EC3 start = post my announcements category +++++++++++++++++++++++++++++++++ -->
<?php if ( is_front_page() ) { ?>
<div class="ec3ctr">
<div class="announce">
<h3 style="text-align: center; color: #797C00;">Hatchtown Update</h3>
<?php $my_query = new WP_Query('category_name=announcements&showposts=1' );
while ($my_query->have_posts()) : $my_query->the_post(); ?>
<!-- ++++ -->
<!-- Post Headline -->
<div class="post-headline">
<h2><?php
if( !is_single() AND !is_page() ) { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php
if (function_exists('the_title_attribute')) {
the_title_attribute();
}
elseif (function_exists('the_title')) {
the_title();
} ?>"><?php
} the_title();
if( !is_single() AND !is_page() ) { ?>
</a><?php
} ?>
</h2>
</div>
<!-- ++++ -->
<?php // Post Byline
if( (is_home() && $bfa_ata_post_byline_home != "") OR
(is_page() && $bfa_ata_post_byline_page != "") OR
(is_single() && $bfa_ata_post_byline_single != "") OR
( (is_archive() OR is_search() OR is_author() OR is_tag()) && $bfa_ata_post_byline_multi != "") ) {
echo '<div class="post-byline">';
if ( is_home() ) { echo postinfo("$bfa_ata_post_byline_home"); }
elseif ( is_page() ) { echo postinfo("$bfa_ata_post_byline_page"); }
elseif ( is_single() ) { echo postinfo("$bfa_ata_post_byline_single"); }
else { echo postinfo("$bfa_ata_post_byline_multi"); }
echo '</div>';
} ?>
<!-- Post Body Copy -->
<div class="post-bodycopy clearfix">
<?php if ((is_home() && $bfa_ata_excerpts_home == "Full Posts") OR
(is_category() && $bfa_ata_excerpts_category == "Full Posts") OR
(is_date() && $bfa_ata_excerpts_archive == "Full Posts") OR
(is_tag() && $bfa_ata_excerpts_tag == "Full Posts") OR
(is_search() && $bfa_ata_excerpts_search == "Full Posts") OR
(is_author() && $bfa_ata_excerpts_author == "Full Posts") OR
is_single() OR
is_page() OR (is_home() AND !is_paged() AND $postcount <= $bfa_ata_full_posts_homepage) ) {
$bfa_ata_more_tag_final = str_replace("%post-title%", the_title('', '', false), $bfa_ata_more_tag);
the_content(bfa_escape($bfa_ata_more_tag_final));
} else {
the_excerpt();
} ?>
</div>
<?php // Post Footer
if( (is_home() && $bfa_ata_post_footer_home != "") OR
(is_page() && $bfa_ata_post_footer_page != "") OR
(is_single() && $bfa_ata_post_footer_single != "") OR
( (is_archive() OR is_search() OR is_author() OR is_tag()) && $bfa_ata_post_footer_multi != "") ) {
echo '<div class="post-footer">';
if ( is_home() ) { echo postinfo("$bfa_ata_post_footer_home"); }
elseif ( is_page() ) { echo postinfo("$bfa_ata_post_footer_page"); }
elseif ( is_single() ) { echo postinfo("$bfa_ata_post_footer_single"); }
else { echo postinfo("$bfa_ata_post_footer_multi"); }
echo '</div>';
} ?>
<!-- EC3 end of my announce div +++++++++++++++++++++++++++++++++++ -->
I'm guessing, if my block of code will still work, it'll have to be "inserted" somewhere new.
Jim