我正在使用此代碼在WP博客文章的末尾添加標(biāo)簽: function tags_after_single_post_content($content) { $posttags = get_the_tags(); if ($posttags) { $array = []; foreach($posttags as $tag) { $array[] = '<a href="/tag/' . $tag->slug . '/">' . $tag->name . '</a>'; } $content .= 'Tags: ' . implode(', ', $array) . '<br>'; } return $content;}add_filter( 'the_content', 'tags_after_single_post_content' );但我想插入一個(gè)圖像而不是“標(biāo)簽:”這個(gè)詞,這可能嗎?
將圖像添加到內(nèi)容
墨色風(fēng)雨
2023-11-05 15:24:27