Inevitably, we’re going to need to add some custom fields to custom post types. Recently, we ran into a situation where we needed to add content from a custom field into the page title of a post type. We wanted to add location information (city and state) in the page title for a post type that has locations for each post.