Created
November 8, 2021 08:16
-
-
Save alt-karate/d4e3794a18d2d1aa84a3caef4665f4ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 入力がない場合の分岐 | |
<?php if(get_post_meta($post->ID,'text5',true)): ?> | |
<h3>タイトルが入ります</h3> | |
<?php echo $cfs->get('text5'); ?> | |
<?php endif; ?> | |
// チェックボックスを使った分岐 | |
<?php if ( get_post_meta($post->ID,'box',TRUE) ): ?> | |
チェックボックスにチェックをいれるとこの文章が表示されます。 | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment