View Single Post
Old 02-09-2012, 07:22 AM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,319
Quote:
Originally Posted by deadmoon View Post
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.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote