$content = preg_replace($tags, $tag_html, $content);
$content = preg_replace($tags, $tag_html, $content, 1);
Çok teşekkür ederim , bu işimi çözdü.
function auto_link_tags($content){
//$post_id = get_the_ID();
$post_tags = get_the_tags();
$varmi="";
if ($post_tags) {
$i = 0;
foreach($post_tags as $tag) {
if(strstr($varmi,"($tag)")
{
}
else
{
$tags[$i] = "~<(?:a\\s.*?</a>|[^>]+>)(*SKIP)(*FAIL)|\\b(?:\\b(" . $tag->name . ")\\b(?=[^>]*(<|$)))\\b~i";
$tag_url = get_tag_link($tag->term_id);
$tag_html[$i] = '<a style="color:#FF0000;" href="' . $tag_url . '" rel="tag" title="$1">$1</a>';
$i++;
$varmi.="($tag)";
}
$content = preg_replace($tags, $tag_html, $content);
}
return $content;
}Bu işinizi görür sanırım.
Size de teşekkür ederim.