diff --git a/includes/api.php b/includes/api.php index abee497..7fc122d 100644 --- a/includes/api.php +++ b/includes/api.php @@ -186,6 +186,7 @@ function get_all_games_datas($request) $currentGameDatas = array( 'gameId' => $post->ID, 'gameTitle' => $post->post_title, + 'gameCover' => get_the_post_thumbnail_url($post->ID, 'full'), ); if (!$post->post_content || empty($post->post_content)) continue;