Correct bug in wfx_custom_field() function

Need to make sure we have a post ID in our query, which depending on how you use this function may not be present (i.e. 404 page - even the checks will fail in certain situations).
wfx_custom_field() reformatting

Nothing much, moving on.