質問編集履歴
2
functions.phpのコードに誤りがございました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -46,8 +46,6 @@
|
|
46
46
|
|
47
47
|
$link = '';
|
48
48
|
foreach($posts as $post)
|
49
|
-
foreach ( $terms as $term )
|
50
|
-
$term_slug = $term -> slug;
|
51
49
|
$link .= '<div><a href="'. get_permalink($post->ID) . '">' . $post->post_title . '</a></div>';
|
52
50
|
$output = preg_replace('@' . preg_quote($match) . '@', $match . $link, $output);
|
53
51
|
}
|
1
該当のソースコードに誤りがございました。こちらに訂正いたします。
title
CHANGED
File without changes
|
body
CHANGED
@@ -48,7 +48,7 @@
|
|
48
48
|
foreach($posts as $post)
|
49
49
|
foreach ( $terms as $term )
|
50
50
|
$term_slug = $term -> slug;
|
51
|
-
$link .= '<div
|
51
|
+
$link .= '<div><a href="'. get_permalink($post->ID) . '">' . $post->post_title . '</a></div>';
|
52
52
|
$output = preg_replace('@' . preg_quote($match) . '@', $match . $link, $output);
|
53
53
|
}
|
54
54
|
}
|