回答編集履歴

1

誤字修正

2020/11/21 00:00

投稿

hiok
hiok

スコア595

test CHANGED
@@ -26,11 +26,11 @@
26
26
 
27
27
  $post_id_in_child_cat = $post_arr->ID;
28
28
 
29
- $post_img_url = get_the_post_thumbnail_url( post_id_in_child_cat, 'thumbnail' );
29
+ $post_img_url = get_the_post_thumbnail_url( $post_id_in_child_cat, 'thumbnail' );
30
30
 
31
31
  if( !empty( $post_img_url ) ){
32
32
 
33
- echo '<img src="'.post_img_url.'" alt="'.$category->cat_name.'" />';
33
+ echo '<img src="'.$post_img_url.'" alt="'.$category->cat_name.'" />';
34
34
 
35
35
  }
36
36