inc/blocks/GlossaryBlock.php
@@ -22,7 +22,7 @@ public function __construct() { $this->cache = Cache::for('glossary_terms', WEEK_IN_SECONDS)->connect('post', true); $this->cache = Cache::for('glossary_terms', 'post', WEEK_IN_SECONDS); add_action('init', [ $this, 'registerBlock' ]); } @@ -91,7 +91,7 @@ $glossary = []; if ($posts->have_posts()) { foreach($posts->posts as $post) { // $meta = new MetaManager($post, 'post'); // $meta = Meta::forPost($post); // $fields = $meta->getAll(); // $glossary[$fields['post_slug']] = $fields; $glossary[$post->post_name] = [