Posted By

rickfu on 06/27/09


Tagged

wordpress wp


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

irishsk


Using Custom Fields « WordPress Codex


 / Published in: PHP
 

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

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

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

Report this snippet  

You need to login to post a comment.