A more universal check for current post id