Posted By

screamwork on 07/13/10


Tagged

wordpress


Versions (?)

get Custom Field outside the loop


 / Published in: PHP
 

  1. <?php
  2. global $wp_query;
  3. $postid = $wp_query->post->ID;
  4. echo get_post_meta($postid, 'customField', true);
  5. ?>

Report this snippet  

You need to login to post a comment.