temamı kendim kodladım, kodlarken hiç fonksiyona gerek olmadığı için functions.php diye bir dosya hiç oluşturmadım. Geçenlerde Yakup GÖVLER'in blogunda Buradaki yazıyı okudum ve functions.php ye ihtiyacım oldu fakat oluşturduğumda sitem hata verdi.

Kendisi yorumlardan birinde benim durumumda olanlar için bir fonksiyon dosyası vermiş fakat o dosya bende gene hata verdi.


<?php
function yg_oto_etiket_ekle($post_id, $post) {
* $tags = explode(" ", preg_replace('/\s+/',' ',$post->post_title));
* wp_set_post_tags($post_id, $tags, true);
}
add_action('save_post', 'yg_oto_etiket_ekle', 10, 2);
?>
acaba hata çıkarmadan functions.php dosyamı nasıl oluşturabilirim ?