Created
November 21, 2013 02:16
-
-
Save guzuri/7575022 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 | |
//困った時の | |
print_r($wp_query); | |
//で、 | |
$hoge = get_queried_object(); | |
print_r($hoge); | |
?> |
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 | |
//タクソノミー>タームID | |
[term_id] => 140 | |
//タクソノミー>タームの名称 | |
[name] => スッテ | |
//タクソノミー>タームのスラッグ | |
[slug] => ika_sutte | |
//? | |
[term_group] => 0 | |
//? | |
[term_order] => 1 | |
//サイト全てを対象とした通し番号(ID) | |
[term_taxonomy_id] => 148 | |
//タクソノミーの名称 | |
[taxonomy] => d_products_category | |
//タクソノミー>タームの説明? | |
[description] => | |
//親に当たるカテゴリー(タクソノミー>ターム)のID | |
[parent] => 123 | |
//そのタクソノミー>タームに含まれる公開中記事の一覧 | |
[count] => 40 | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment