Fixed a issue whereby the get_post_meta should be stored as a variable