diff --git a/article-recommendations.php b/article-recommendations.php index bcdd231..618841b 100644 --- a/article-recommendations.php +++ b/article-recommendations.php @@ -127,7 +127,7 @@ public function widget($args, $instance) { // This is where you run the code and display the output $URL = "https://article-rec-api.localnewslab.io/recs"; - $query = "?source_entity_id='{$post_id}'&model_type={$model_type}&sort_by={$sort_by}{$exclude}"; + $query = "?source_entity_id={$post_id}&model_type={$model_type}&sort_by={$sort_by}{$exclude}"; $request_url = $URL . $query; $response = wp_remote_retrieve_body ( wp_remote_get( $request_url ) ); @@ -318,4 +318,4 @@ public function update( $new_instance, $old_instance ) { } // Class article_recommendations ends here -?> \ No newline at end of file +?>