解决方案-
取出:
foreach($zg_get_title as $zg_title_out) {
echo "<a href=\\"". get_permalink($value+0) . "\\" title=\\"". $zg_title_out->post_title . "\\">". $zg_title_out->post_title . "</a>, \\n"; // Output link and title
插入:
foreach($zg_get_title as $post) { echo "<a href=\\"". get_permalink($value+0) . "\\" title=\\"". $post->post_title . "\\">". apply_filters(\'the_title\',$post->post_title) . "</a>; \\n"; // Output link and title
$zg_title_out
已替换为
$post
,
和
$zg_title_out->post_title
已替换为
$post->post_title