if u need to do it outside the loop with post->id u need to do the_post() - you doing that? it shouldn't be showing the permalink though in any case. sure the XYZ value is set up correctly? inside the loop does it show the right value?
if u use the post inside the loop (and always will) why not just do this inside the loop
$footerData = get_post_meta(get_the_ID(), 'XYZ', true);
(get_the_ID() can be changed with $post->ID...)
then in the footer just <?=$footerData;?> it
(not checked any code... might be errors)
|