diff --git a/ACTIONS.md b/ACTIONS.md index 87ad7f89..8bb129cb 100644 --- a/ACTIONS.md +++ b/ACTIONS.md @@ -150,6 +150,7 @@ Archive template hook. Fires right after the result loop section in any archive * $order (string) – Current order query argument. Default 'desc'. * $orderby (string) – Current orderby query argument. Default 'date'. * $ago (int|string) – Current value for the date query. Default 0. +* $taxonomy (string) – Current taxonomy. --- @@ -161,6 +162,7 @@ Archive template hook. Fires right before the result loop section in any archive * $order (string) – Current order query argument. Default 'desc'. * $orderby (string) – Current orderby query argument. Default 'date'. * $ago (int|string) – Current value for the date query. Default 0. +* $taxonomy (string) – Current taxonomy. **Hooked Actions:** * `fictioneer_sort_order_filter_interface( $args )` – Interface to sort, order, and filter. Priority 10. diff --git a/category.php b/category.php index ded82c37..72be9df3 100644 --- a/category.php +++ b/category.php @@ -69,7 +69,7 @@ get_header(); - + 'category' ) ); ?> diff --git a/partials/_archive-loop.php b/partials/_archive-loop.php index 5071a642..73dc284b 100644 --- a/partials/_archive-loop.php +++ b/partials/_archive-loop.php @@ -13,6 +13,8 @@ * @see taxonomy-fcn_content_warning.php * @see taxonomy-fcn_fandom.php * @see taxonomy-fcn_genre.php + * + * @internal $args['taxonomy'] The current taxonomy type. */ @@ -31,7 +33,8 @@ $hook_args = array( 'page' => $page, 'order' => $order, 'orderby' => $orderby, - 'ago' => $ago + 'ago' => $ago, + 'taxonomy' => $args['taxonomy'] ); ?> diff --git a/tag.php b/tag.php index 58b81a3f..38436c92 100644 --- a/tag.php +++ b/tag.php @@ -77,7 +77,7 @@ get_header(); - + 'post_tag' ) ); ?> diff --git a/taxonomy-fcn_character.php b/taxonomy-fcn_character.php index 41f72566..2f29dd19 100644 --- a/taxonomy-fcn_character.php +++ b/taxonomy-fcn_character.php @@ -78,7 +78,7 @@ get_header(); - + 'fcn_character' ) ); ?> diff --git a/taxonomy-fcn_content_warning.php b/taxonomy-fcn_content_warning.php index b45e40a9..8439874e 100644 --- a/taxonomy-fcn_content_warning.php +++ b/taxonomy-fcn_content_warning.php @@ -78,7 +78,7 @@ get_header(); - + 'fcn_content_warning' ) ); ?> diff --git a/taxonomy-fcn_fandom.php b/taxonomy-fcn_fandom.php index 4bf25ed2..18ca5361 100644 --- a/taxonomy-fcn_fandom.php +++ b/taxonomy-fcn_fandom.php @@ -78,7 +78,7 @@ get_header(); - + 'fcn_fandom' ) ); ?> diff --git a/taxonomy-fcn_genre.php b/taxonomy-fcn_genre.php index ceb6737c..37ae4149 100644 --- a/taxonomy-fcn_genre.php +++ b/taxonomy-fcn_genre.php @@ -78,7 +78,7 @@ get_header(); - + 'fcn_genre' ) ); ?>