Return to Snippet

Revision: 15219
at June 27, 2009 13:20 by rickfu


Initial Code
<?php $key="mykey"; echo get_post_meta($post->ID, $key, true); ?>

Initial URL
http://codex.wordpress.org/Using_Custom_Fields

Initial Description
This will output the resulting meta value (notice the addition of "echo"):

Initial Title
Using Custom Fields « WordPress Codex

Initial Tags
wordpress

Initial Language
PHP