fixed post warning in functions.php