Definition:
function has_meta( $postid ) {}
Some postmeta stuff.
Parameters
- unknown_type $postid
Source code
function has_meta( $postid ) {
global $wpdb;
return $wpdb->get_results( $wpdb->prepare("SELECT meta_key, meta_value, meta_id, post_id
FROM $wpdb->postmeta WHERE post_id = %d
ORDER BY meta_key,meta_id", $postid), ARRAY_A );
}
1933

February 12, 2011 


No comments yet... Be the first to leave a reply!