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?