Update body class function

And post ID helper