View Single Post
Old 02-09-2012, 06:13 AM  
madtwin
Confirmed User
 
Industry Role:
Join Date: Aug 2009
Posts: 274
WP Gurus - Help needed

I have a custom field called XYZ with url and I need to put that url in theme template (footer), outside the loop - like this: <a href="XYZ value">some example text</a>

When I call this custom field:

<a href="<?php echo get_post_meta($post->ID, 'XYZ', true); ?>">some example text</a>

it just shows <a href="current posts permalink">some example text</a>


So how to do that properly?
madtwin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote