meta value count
-
Hi,
I have the following query:$journal = get_post_meta($post_id, 'Journal', $single = true); $journal_count = $wpdb->get_var("SELECT COUNT (*) FROM $wpdb->postmeta WHERE meta_key = 'Journal' AND meta_value = '$journal' " );
this returns NULL.
I don’t understand why.
Anybody help?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘meta value count’ is closed to new replies.