|
|
@@ -22,7 +22,10 @@ function default_post_format( $item, $include_content ) {
|
|
22
|
22
|
if($include_content) $filtered[content] = $item->post_content;
|
|
23
|
23
|
|
|
24
|
24
|
$filtered[featured] = get_the_post_thumbnail_url($item);
|
|
25
|
|
-
|
|
|
25
|
+ if(!$filtered[featured]) {
|
|
|
26
|
+ $thumbnailId = get_post_meta( $item->ID, '_thumbnail_id', true );
|
|
|
27
|
+ $filtered[featured] = get_post($thumbnailId)->guid;
|
|
|
28
|
+ }
|
|
26
|
29
|
|
|
27
|
30
|
// Materials + type endpoints
|
|
28
|
31
|
// if($item->post_type === 'artist' || $item->post_type === 'event' || $item->post_type === 'exhibition') {
|