echo get_post_meta( $post->ID, ‘sub_category', true ) . “This is the category”;
$a = get_post_meta( $post->ID, ‘sub_category', true);
The first two items (county and city) display perfectly so I know that $post->ID works.
I cannot figure out why the meta from my form isn't working though. It's really important that we get this fixed because I am trying to customize my template for the post and this seems to be the only way to do that.
Ok, so after some experimentation, I have found that for some reason post->ID won't work. Instead I have to use get_the_ID(). Below is what I ended up with. Is there some reason that post->ID works perfectly for my custom taxonomies, but I have to switch to get_the_ID() for the form's custom fields?