I have a custom field in my post called fb_name. I need to be able to get that field name outside of the loop in my sidebar. How can I accomplish this?
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
If it's a single post or page, you can just pass the global $post->ID:
|
|||
|
|
|
See http://codex.wordpress.org/Custom_Fields#Displaying_Custom_Fields and http://codex.wordpress.org/Custom_Fields#Advanced_Techniques_for_Custom_Fields |
|||
|
|