use native WP method to get custom post values