Ver código fonte

add exhibition to sort by_material

tags/1.0.3
Alej 3 anos atrás
pai
commit
6437eb8689

+ 1
- 2
plugins/cia-endpoints/cia-end-points.php Ver arquivo

92
     
92
     
93
     $material_sorts = ['by_material'];
93
     $material_sorts = ['by_material'];
94
     $by_material_types = [
94
     $by_material_types = [
95
-        'artist', 'guide', 'short',
96
-        'object', 'publication', 'technique'
95
+        'artist', 'exhibition', 'short', 'technique', 'guide',  'object', 'publication'
97
     ];
96
     ];
98
     _make_sorts($by_material_types, $material_sorts);
97
     _make_sorts($by_material_types, $material_sorts);
99
     
98
     

+ 1
- 1
plugins/cia-endpoints/includes/formats.php Ver arquivo

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', 'short', 'guide', 'object', 'publication', 'technique' ];
46
+    $posts_with_type = ['artist', 'exhibition', 'event', 'short', 'technique', 'guide', 'object', 'publication' ];
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' ));

Carregando…
Cancelar
Salvar