[tpcode] // Get the meta value and check that it's switched on $editInHTML = getHTMLEditStatus( $post->ID ); [/tpcode] [tpb]CHANGE TO[/tpb] [tpcode] if ($post == null) { return; } // Get the meta value and check that it's switched on $editInHTML = getHTMLEditStatus( $post->ID ); [/tpcode]