Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions article-recommendations.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) );
Expand Down Expand Up @@ -318,4 +318,4 @@ public function update( $new_instance, $old_instance ) {
} // Class article_recommendations ends here


?>
?>