質問編集履歴

2

誤字

2019/09/28 00:25

投稿

macchaccha
macchaccha

スコア8

test CHANGED
File without changes
test CHANGED
@@ -58,7 +58,7 @@
58
58
 
59
59
  foreach( $term_names as $term_name ){
60
60
 
61
- // fruitsについて取得
61
+ // fruits について取得
62
62
 
63
63
  $term_data_fruits = get_term_by( 'name', $term_name, 'fruits' );
64
64
 
@@ -72,7 +72,7 @@
72
72
 
73
73
  }
74
74
 
75
- // nameについて取得
75
+ // vegetables について取得
76
76
 
77
77
  $term_data_vegetables = get_term_by( 'name', $term_name, 'vegetables' );
78
78
 

1

breal;あった方がいいっぽいので追記

2019/09/28 00:25

投稿

macchaccha
macchaccha

スコア8

test CHANGED
File without changes
test CHANGED
@@ -66,7 +66,9 @@
66
66
 
67
67
  $term_id_fruits = $term_data_fruits->term_id;
68
68
 
69
- $term_ids[] = $term_id_fruits ;
69
+ $term_ids[] = $term_id_fruits;
70
+
71
+ break;
70
72
 
71
73
  }
72
74