Quote:
Originally Posted by deadmoon
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)
|
get the id is only for the loop.
you will need to pass the actual post id outside the loop for the footer.
and if you are changing it each post, i would store the postid in a variable then pass that on to the footer code.