Fetching wordpress custom field values

$custom_val = get_post_custom(‘$post_id);

If you know the post id just place it and use print_r($custom_val) to see the array.

As per your likings you can then print/echo the value of a custom fields.

Leave a Reply

Your email address will not be published. Required fields are marked *