From 75d0af5f73a09bf72dd32adae48ba357224279c9 Mon Sep 17 00:00:00 2001 From: ASDWcodes <86236444+ASDWcodes@users.noreply.github.com> Date: Wed, 14 Jul 2021 13:44:00 -0300 Subject: [PATCH] * fix(poet): Swap taxonomy and post type load order (#28) * chore(docs): Add Blade view note to taxonomy docs --- README.md | 2 ++ src/Poet.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e369443..c790202 100644 --- a/README.md +++ b/README.md @@ -111,6 +111,8 @@ Registering a taxonomy is similar to a post type. Looking in `config/poet.php`, The most relevent configuration option is `links` which defines the post type the taxonomy is connected to. If no link is specified, it will default to `post`. +To view an archive for the Genre taxonomy, copy the Blade template called `archive.blade.php` to a new file called `taxonomy-genre.blade.php`. + In it's simplest form, you can simply pass a string. The example below would create a Topic taxonomy for the Post post type: ```php diff --git a/src/Poet.php b/src/Poet.php index 591d57d..4f1a1a0 100644 --- a/src/Poet.php +++ b/src/Poet.php @@ -43,8 +43,8 @@ class Poet BlockCategoryModule::class, BlockModule::class, EditorPaletteModule::class, - PostTypeModule::class, TaxonomyModule::class, + PostTypeModule::class, ]; /**