Display custom fields from custom posts in RSS feed

$price = $wpdb->get_row($wpdb->prepare(“SELECT salePrice FROM ‘ . $wpdb->gm_ads_products . ‘ WHERE post_id = ‘ . $post->ID . ‘”)); // this seems to be the issue Yes, that’s right. First, because $wpdb->prepare() requires at least two parameters, one is the SQL query with placeholders like %d (for numbers) and the other is the replacement values that … Read more