passing the game print pdf
This commit is contained in:
parent
1b2208bcd4
commit
1454129025
|
|
@ -187,6 +187,7 @@ function get_all_games_datas($request)
|
||||||
'gameId' => $post->ID,
|
'gameId' => $post->ID,
|
||||||
'gameTitle' => $post->post_title,
|
'gameTitle' => $post->post_title,
|
||||||
'gameCover' => get_the_post_thumbnail_url($post->ID, 'full'),
|
'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;
|
if (!$post->post_content || empty($post->post_content)) continue;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user