How to get the custom feild value of post or page in wordpress?

to get the custom feild value of post or page try with this code
get_post_meta($post_id, 'customfeildname', true);

to set custom field value...

0 comments:

Post a Comment