@@ -8,14 +8,14 @@ |
||
8 | 8 | |
9 | 9 | const POST_TYPE = 'post'; |
10 | 10 | |
11 | -add_filter('Flynt/addComponentData?name=GridPostsSlider', function ($data) { |
|
11 | +add_filter('Flynt/addComponentData?name=GridPostsSlider', function($data) { |
|
12 | 12 | $postType = POST_TYPE; |
13 | 13 | $data['taxonomies'] = $data['taxonomies'] ?: []; |
14 | 14 | |
15 | 15 | $data['items'] = Timber::get_posts([ |
16 | 16 | 'post_status' => 'publish', |
17 | 17 | 'post_type' => $postType, |
18 | - 'category' => join(',', array_map(function ($taxonomy) { |
|
18 | + 'category' => join(',', array_map(function($taxonomy) { |
|
19 | 19 | return $taxonomy->term_id; |
20 | 20 | }, $data['taxonomies'])), |
21 | 21 | 'posts_per_page' => 12, |
@@ -8,14 +8,14 @@ |
||
8 | 8 | |
9 | 9 | const POST_TYPE = 'post'; |
10 | 10 | |
11 | -add_filter('Flynt/addComponentData?name=GridPostsTeaser', function ($data) { |
|
11 | +add_filter('Flynt/addComponentData?name=GridPostsTeaser', function($data) { |
|
12 | 12 | $postType = POST_TYPE; |
13 | 13 | $data['taxonomies'] = $data['taxonomies'] ?: []; |
14 | 14 | |
15 | 15 | $data['items'] = Timber::get_posts([ |
16 | 16 | 'post_status' => 'publish', |
17 | 17 | 'post_type' => $postType, |
18 | - 'category' => join(',', array_map(function ($taxonomy) { |
|
18 | + 'category' => join(',', array_map(function($taxonomy) { |
|
19 | 19 | return $taxonomy->term_id; |
20 | 20 | }, $data['taxonomies'])), |
21 | 21 | 'posts_per_page' => $data['options']['postCount'], |
@@ -8,14 +8,14 @@ |
||
8 | 8 | |
9 | 9 | const POST_TYPE = 'post'; |
10 | 10 | |
11 | -add_filter('Flynt/addComponentData?name=GridPostsLatest', function ($data) { |
|
11 | +add_filter('Flynt/addComponentData?name=GridPostsLatest', function($data) { |
|
12 | 12 | $postType = POST_TYPE; |
13 | 13 | $data['taxonomies'] = $data['taxonomies'] ?: []; |
14 | 14 | |
15 | 15 | $data['items'] = Timber::get_posts([ |
16 | 16 | 'post_status' => 'publish', |
17 | 17 | 'post_type' => $postType, |
18 | - 'category' => join(',', array_map(function ($taxonomy) { |
|
18 | + 'category' => join(',', array_map(function($taxonomy) { |
|
19 | 19 | return $taxonomy->term_id; |
20 | 20 | }, $data['taxonomies'])), |
21 | 21 | 'posts_per_page' => $data['options']['postCount'], |