diff --git a/inc/call-to-action/package/block/index.php b/inc/call-to-action/package/block/index.php index 3f7fe2d6..c1efb162 100644 --- a/inc/call-to-action/package/block/index.php +++ b/inc/call-to-action/package/block/index.php @@ -155,10 +155,11 @@ function veu_cta_block_callback( $attributes, $content ) { global $post; $post_config = ''; if ( $post ) { + // 表示(CTA配置)側ページの CTA 表示設定を取得. $post_config = get_post_meta( $post->ID, 'vkexunit_cta_each_option', true ); } - // 各記事で非表示指定されていなかったら表示する + // 表示(CTA配置)側のページでCTAを非表示に指定されていなかったら表示する if ( 'disable' !== $post_config ) { if ( ! empty( $attributes['postId'] ) ) { $cta_id = 'random' !== $attributes['postId'] ? $attributes['postId'] : Vk_Call_To_Action::cta_id_random();