Merhabalar eklenti olmadan sadece functionsa ekleyeceğiniz tek kodla yazınızdaki tüm etiketler otomatik etiketleme yapıp seonu geliştirmek ister misin?
Tek yapman gerek şu kodu functions.php ye eklemen
//by Otomatik WordPress etiket oluşturucu
 function tag_sort($a, $b){  if ( $a->name == $b->name ) return 0;  return ( strlen($a->name) > strlen($b->name) ) ? -1 : 1; }
function tag_link($content){ $match_num_from = 1; //一Bağlantı olmadan birkaç defadan az etiketler $match_num_to = 1; //一Bir etiket en fazla birkaç kez bağlanabilir $posttags = get_the_tags(); if ($posttags) { usort($posttags, "tag_sort"); foreach($posttags as $tag) { $link = get_tag_link($tag->term_id); $keyword = $tag->name; //Bağlantı kodu $cleankeyword = stripslashes($keyword); $url = "<a href=\"$link\" title=\"".str_replace('%s',addcslashes($cleankeyword, '$'),__('Hakkında daha fazla ayrıntı %s makale'))."\""; $url .= ' target="_blank"'; $url .= ">".addcslashes($cleankeyword, '$')."</a>"; $limit = rand($match_num_from,$match_num_to); //kodu bağlama $content = preg_replace( '|(<a[^>]+>)(.*)<pre.*?>('.$ex_word.')(.*)<\/pre>(</a[^>]*>)|U'.$case, '$1$2%&&&&&%$4$5', $content); $content = preg_replace( '|(<img)(.*?)('.$ex_word.')(.*?)(>)|U'.$case, '$1$2%&&&&&%$4$5', $content); $cleankeyword = preg_quote($cleankeyword,'\''); $regEx = '\'(?!((<.*?)|(<a.*?)))('. $cleankeyword . ')(?!(([^<>]*?)>)|([^>]*?</a>))\'s' . $case; $content = preg_replace($regEx,$url,$content,$limit); $content = str_replace( '%&&&&&%', stripslashes($ex_word), $content); } } return $content; }
add_filter('the_content','tag_link',1);
Not Buradaki kod sorun çıkarıyor txt hali
https://dosya.co/0qkaqoo5rpgh/kod.txt.html