build helper functions

in order to reduce the amount of duplicate code surrounding the custom
post data, I've built some helper functions. They've been written, but
require additional documentation and implementation into the general
plugin