PHP Notice error (when on 404 page)
I have a 404.php template for my theme. I also have WP_DEBUG in wp-config.php set to TRUE. Consider this 404 template: get_header(); ?> <div id=”content” style=”full-width”> <div id=”post-<?php the_ID(); ?>” <?php post_class(); ?>> <div class=”post-content”> Whatever. </div> </div> </div> <?php get_footer(); ?> I get the following error: Notice: Trying to get property of non-object in … Read more