Browse Source

added material endpoints for rest of post types

tags/0.9.0
Alej 4 years ago
parent
commit
650e8575ed
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      plugins/cia-endpoints/includes/formats.php

+ 1
- 1
plugins/cia-endpoints/includes/formats.php View File

43
     $filtered[hero] = get_post_meta( $item->ID, 'hero_header', true );
43
     $filtered[hero] = get_post_meta( $item->ID, 'hero_header', true );
44
 
44
 
45
     // Materials + type endpoints
45
     // Materials + type endpoints
46
-    $posts_with_type = ['artist', 'exhibition', 'event'];
46
+    $posts_with_type = ['artist', 'exhibition', 'event', 'short', 'guide', 'object', 'publication', 'technique' ];
47
     if( in_array($item->post_type, $posts_with_type) ) {
47
     if( in_array($item->post_type, $posts_with_type) ) {
48
         $filtered[materials] = make_taxonomy_endpoint_for(get_the_terms( $item, 'material'));
48
         $filtered[materials] = make_taxonomy_endpoint_for(get_the_terms( $item, 'material'));
49
         $filtered[subtypes] = make_taxonomy_endpoint_for(get_the_terms( $item, $item->post_type . '_type' ));
49
         $filtered[subtypes] = make_taxonomy_endpoint_for(get_the_terms( $item, $item->post_type . '_type' ));

Loading…
Cancel
Save