Unfortunately, the theme is heavily modified, and besides the breadcrumbs plugins, everything else seems to function fine with the modifications. You’re right about where the problem is. Each one of the six articles in the top is generated by this code:
<ul class="highlights2">
<?php $highlight7 = new WP_Query("meta_key=thumbnail&cat=".get_wpn_config('highlights_category_id_7')."&showposts=1"); while($highlight7->have_posts()) : $highlight7->the_post();
$highlightcat7 = get_wpn_config('highlights_category_id_7');
$highlightcatname7 = get_cat_name( $highlightcat7 );
$cat7_string.='<a href="'.get_category_link( $highlightcat7 ).'">'.$highlightcatname7.'</a>';?>
<li>
<?php if(get_post_meta($post->ID, "thumbnail", true)) : ?>
<a href="<?php the_permalink(); ?>" class="thumbnail"><img src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" /></a>
<?php endif; ?>
<span class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></span>
<span class="cat"><?php echo $cat7_string; ?></span>
</li>
<?php endwhile; ?>
</ul>
it looks like this part of that code is what causes the problem: `<?php $highlight7 = new WP_Query(“meta_key=thumbnail&cat=”.get_wpn_config(‘highlights_category_id_7’).”&showposts=1″); while($highlight7->have_posts()) : $highlight7->the_post();
$highlightcat7 = get_wpn_config(‘highlights_category_id_7’);
$highlightcatname7 = get_cat_name( $highlightcat7 );
$cat7_string.='<a href=”‘.get_category_link( $highlightcat7 ).'”>’.$highlightcatname7.'</a>’;?> (code that isn’t causing the error) <?php endwhile; ?>`
If you look at the part that is causing the error, it doesn’t actually contain the $post. Since it looks like I can’t edit it without it breaking my desired functionality, how can I restore it back to its original state after it’s done?