|
|
@@ -150,7 +150,11 @@ class Make_Sort_By extends WP_REST_Controller {
|
|
150
|
150
|
|
|
151
|
151
|
public function prepare_items_for_reponse( $items ) {
|
|
152
|
152
|
$collection = array();
|
|
153
|
|
- forEach( $items as $key => $item ) $collection[$key] = default_post_format($item, false);
|
|
|
153
|
+ $formatted = default_post_format($item, false);
|
|
|
154
|
+ $formatted[hero] = get_post_meta( $post->ID, 'hero_header', true );
|
|
|
155
|
+
|
|
|
156
|
+ forEach( $items as $key => $item ) $collection[$key] = $formatted;
|
|
|
157
|
+
|
|
154
|
158
|
return $collection;
|
|
155
|
159
|
}
|
|
156
|
160
|
}
|