Reply To: Need help to put a default form to each accommodation.

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: