Add taxonomy name taxonomy template/partial args
This commit is contained in:
parent
cc9e62d8b5
commit
032eca5086
@ -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.
|
||||
|
@ -69,7 +69,7 @@ get_header();
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<?php get_template_part( 'partials/_archive-loop' ); ?>
|
||||
<?php get_template_part( 'partials/_archive-loop', null, array( 'taxonomy' => 'category' ) ); ?>
|
||||
|
||||
</article>
|
||||
|
||||
|
@ -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']
|
||||
);
|
||||
|
||||
?>
|
||||
|
2
tag.php
2
tag.php
@ -77,7 +77,7 @@ get_header();
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<?php get_template_part( 'partials/_archive-loop' ); ?>
|
||||
<?php get_template_part( 'partials/_archive-loop', null, array( 'taxonomy' => 'post_tag' ) ); ?>
|
||||
|
||||
</article>
|
||||
|
||||
|
@ -78,7 +78,7 @@ get_header();
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<?php get_template_part( 'partials/_archive-loop' ); ?>
|
||||
<?php get_template_part( 'partials/_archive-loop', null, array( 'taxonomy' => 'fcn_character' ) ); ?>
|
||||
|
||||
</article>
|
||||
|
||||
|
@ -78,7 +78,7 @@ get_header();
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<?php get_template_part( 'partials/_archive-loop' ); ?>
|
||||
<?php get_template_part( 'partials/_archive-loop', null, array( 'taxonomy' => 'fcn_content_warning' ) ); ?>
|
||||
|
||||
</article>
|
||||
|
||||
|
@ -78,7 +78,7 @@ get_header();
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<?php get_template_part( 'partials/_archive-loop' ); ?>
|
||||
<?php get_template_part( 'partials/_archive-loop', null, array( 'taxonomy' => 'fcn_fandom' ) ); ?>
|
||||
|
||||
</article>
|
||||
|
||||
|
@ -78,7 +78,7 @@ get_header();
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<?php get_template_part( 'partials/_archive-loop' ); ?>
|
||||
<?php get_template_part( 'partials/_archive-loop', null, array( 'taxonomy' => 'fcn_genre' ) ); ?>
|
||||
|
||||
</article>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user