where are you setting $ecpt_challenge
, $ecpt_solution
and $ecpt_results
?
also get_post_meta($post->ID, 'ecpt_goal', false);
returns an array, so use
print_r ( get_post_meta($post->ID, 'ecpt_goal', false));
OR for single result pass “true” in the last argument.
echo get_post_meta($post->ID, 'ecpt_goal', true);
reference: get_post_meta() @codex