June 9, 2012 at 15:12 /
Hi,
The Query had a little mistake that i quickly corrected.
This is the correct query:
$sql = “SELECT post_id FROM ” . $wpdb->prefix . “postmeta WHERE meta_key=’reservations_releated_post’ AND meta_value='”. get_the_ID() .”‘”;
Anyway the do_shortcode is not returning anything.
I’m inserting this code after the following line: