image_seo işlevi ($ content){global $ post; preg_match_all ('/ <img (. *?) /> /', $ içerik, $ resimler);if (! is_null ($ images)) {foreach ($ images [1], $ index => $ value) olarak{if (! preg_match ('/ alt = /', $ değer)) {$ new_img = str_replace ('<img', '<img alt = "'. get_the_title (). '"', $ images [0] [$ index]);$ content = str_replace ($ images [0] [$ index], $ new_img, $ content);}}}$ içerik döndür;}add_filter ('the_content', 'image_seo', 70000);Eklentisiz halledebilirsin. Yukarıdaki kodu functions.php dosyasına ekle.
hocam eklerken hata veriyor temanın ilgili yerine.
Your PHP code changes were rolled back due to an error on line 311 of file wp-content/themes/easyblog/functions.php. Please fix and try saving again.
syntax error, unexpected 'işlevi' (T_STRING)