Help understanding this single line of code with get_post_meta
-
Hey all,
I came across this line of code and I’m trying to understand how it’s dynamically pulling an image header. I looked up get_post_meta on the WordPress Codex site but was still left a little unclear as to how this works and how it is pulling the right images.<img src=”<? echo get_post_meta($post->ID, ‘header’, true) ?>”
Thanks in advance for any help with this. A simple explanation would be great :)
-
You did not specify a blog address or reason for posting when you created this topic.
This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.
If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.
If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.
This is an automated message.
- The topic ‘Help understanding this single line of code with get_post_meta’ is closed to new replies.