Selaa lähdekoodia

:recycle: skip using block parser

tags/0.9.0
j 4 vuotta sitten
vanhempi
commit
bdb51277bf

+ 1
- 1
plugins/cia-endpoints/includes/class.make-endpoint.php Näytä tiedosto

@@ -84,7 +84,7 @@ class Make_Endpoint_For extends WP_REST_Controller {
84 84
             $filtered[hero] = get_post_meta( $item->ID, 'hero_header', true );
85 85
 
86 86
             $filtered[relatedto] = p2p_related_to( $item->ID, $item->post_type );
87
-
87
+            $filtered[content] = $item->post_content;
88 88
             $collection[$item->ID] = $filtered;
89 89
         }
90 90
         wp_reset_postdata();

+ 4
- 3
vue-theme/src/pages/single.vue Näytä tiedosto

@@ -19,9 +19,10 @@
19 19
                 p start: {{ dateFrom(post.start) }}
20 20
                 p end: {{ dateFrom(post.end) }}
21 21
 
22
-        ul
23
-            li(v-for="(block, index) in post.blocks" :key="`block-${index}`" class="post-single block-wrapper")
24
-                block(:block="block" @open-gallery="openGallery")
22
+        .content(v-html="post.content")
23
+        //- ul
24
+        //-     li(v-for="(block, index) in post.blocks" :key="`block-${index}`" class="post-single block-wrapper")
25
+        //-         block(:block="block" @open-gallery="openGallery")
25 26
 
26 27
         //- related artists section example layout
27 28
         section(v-if="type === 'episodes' && post" :post="post")

Loading…
Peruuta
Tallenna