Skip to content

Commit

Permalink
Fix: $exclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
mtdkei authored Jan 21, 2025
1 parent 6191f70 commit 877f7d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/content-archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ function vkpdc_render_post_item( $post = null, $attributes = [] ) {

// 除外するタクソノミー
$excluded_taxonomies = get_option( 'vkpdc_excluded_taxonomies', [] ); // 除外するタクソノミーを取得
$exclusion = apply_filters( 'vkpdc_archive_display_taxonomies_exclusion', $excluded_taxonomies );
$exclusion = apply_filters( 'vkpdc_archive_display_taxonomies_exclusion',
vkpdc_is_block_theme() ? $attributes['excluded_taxonomies'] :
(empty($attributes['excluded_taxonomies']) ? $excluded_taxonomies : $attributes['excluded_taxonomies'])
);

// タクソノミーの取得
$args = array(
Expand Down

0 comments on commit 877f7d7

Please sign in to comment.