投稿ID = 18822
mysql> select * from wp_term_relationships where object_id = 18822;
+-----------+------------------+------------+
| object_id | term_taxonomy_id | term_order |
+-----------+------------------+------------+
| 18822 | 3 | 0 |
| 18822 | 39 | 0 |
| 18822 | 60 | 0 |
| 18822 | 125 | 0 |
+-----------+------------------+------------+
mysql> select * from wp_terms join wp_term_taxonomy on wp_terms.term_id = wp_term_taxonomy.term_id where wp_terms.term_id = 39\G;
*************************** 1. row ***************************
term_id: 39
name: サンゴ
slug: %e3%82%b5%e3%83%b3%e3%82%b4
term_group: 0
term_taxonomy_id: 39
term_id: 39
taxonomy: category
description:
parent: 35
count: 9
mysql> select * from wp_terms join wp_term_taxonomy on wp_terms.term_id = wp_term_taxonomy.term_id where wp_terms.term_id = 35\G;
*************************** 1. row ***************************
term_id: 35
name: 海のもの
slug: %e3%82%bf%e3%83%bc%e3%82%b3%e3%82%a4%e3%82%ba%e4%bb%a5%e5%a4%96
term_group: 0
term_taxonomy_id: 35
term_id: 35
taxonomy: category
description:
parent: 6
count: 1
mysql> select * from wp_terms join wp_term_taxonomy on wp_terms.term_id = wp_term_taxonomy.term_id where wp_terms.term_id = 6\G;
*************************** 1. row ***************************
term_id: 6
name: 商品ジャンル
slug: itemgenre
term_group: 0
term_taxonomy_id: 6
term_id: 6
taxonomy: category
description:
parent: 3
count: 3
mysql> select * from wp_terms join wp_term_taxonomy on wp_terms.term_id = wp_term_taxonomy.term_id where wp_terms.term_id = 3\G;
*************************** 1. row ***************************
term_id: 3
name: 商品
slug: item
term_group: 0
term_taxonomy_id: 3
term_id: 3
taxonomy: category
description:
parent: 0
count: 372
お仕事に関するご相談・お問い合わせは 株式会社オートプロジェクトのお問い合わせページよりお願いします。
運営サイト:
IMCショップ
オートプロジェクト
システム開発案内:
株式会社オートプロジェクト
コメント