Update post_functions.php