diff --git a/includes/api.php b/includes/api.php index 7fc122d..9e27130 100644 --- a/includes/api.php +++ b/includes/api.php @@ -187,6 +187,7 @@ function get_all_games_datas($request) 'gameId' => $post->ID, 'gameTitle' => $post->post_title, 'gameCover' => get_the_post_thumbnail_url($post->ID, 'full'), + 'gamePrintPdf' => get_field('print_pdf', $post->ID) ? get_field('print_pdf', $post->ID)['url'] : null, ); if (!$post->post_content || empty($post->post_content)) continue;