Created
June 21, 2021 03:43
-
-
Save alt-karate/4c8380f9ecf49de3bd8aa994a817ae22 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(is_tax("タクソノミー名")): ?> | |
//処理を記載 | |
<?php endif; ?> | |
//タームによって条件分岐させる場合 | |
<?php if(is_tax("タクソノミー名", "ターム名")): ?> | |
//処理を記載 | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment