Skip to content

Commit

Permalink
* fix(poet): Swap taxonomy and post type load order (#28)
Browse files Browse the repository at this point in the history
* chore(docs): Add Blade view note to taxonomy docs
  • Loading branch information
ASDWcodes committed Jul 14, 2021
1 parent 25ae02a commit 75d0af5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Poet.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ class Poet
BlockCategoryModule::class,
BlockModule::class,
EditorPaletteModule::class,
PostTypeModule::class,
TaxonomyModule::class,
PostTypeModule::class,
];

/**
Expand Down

0 comments on commit 75d0af5

Please sign in to comment.