Update functions.php

fixed an error in a variable declaration, removed the comment link and added `before` param to the post info section