Update functions.php

Added post permalink url for loop image by Burak Ermeydan.