回答編集履歴

1

修正

2018/12/13 06:10

投稿

KazuhiroHatano
KazuhiroHatano

スコア7804

test CHANGED
@@ -12,11 +12,9 @@
12
12
 
13
13
  <?php
14
14
 
15
- $term_parent = array_shift(get_terms([
15
+ $term_parent = array_shift(get_terms('taxonomy_slug',[
16
16
 
17
17
  'object_ids'=>$post->ID,
18
-
19
- 'taxonomy'=>'taxonomy_slug',
20
18
 
21
19
  'parent'=>0
22
20