Beowulf78 adlı üyeden alıntı: mesajı görüntüle
Kusura bakmayın header.php'ye eklerken hata aldığımı yazmışım. "functions.php" olacaktı. Gerekli kodları "functions.php" ekleyip kaydetmeye çalıştığımda ;
function yg_etiketler() {            global $post;            if (is_single()) {             if ( $post ) {                 $posttags=get_the_tags($post->ID);                if ($posttags) {                  $liste = '';                  foreach ($posttags as $tag) {                   $liste .= ' '. wp_specialchars($tag->name);                 }                 return $liste;                }            }           }           return '';          }                     function yg_aio_keywords() {            global $post;            if ( is_single() ) {                if ($post) {                  $keywords = null;                  $keywords = stripcslashes(get_post_meta($post->ID, "keywords", true));                  if (isset($keywords) && !empty($keywords)) {                      $keywords = preg_replace('/\s+/',' ', str_replace(',', ' ', $keywords));                      return $keywords;                  }                }            }           return '';          }
Böyle saçma bir hata alıyorum.
@Emrahca kardeşim dediğini yaptım olmadı.
bu hata değil ki... Verilen kodu ?> sonrasına eklemişsiniz.

?> işaretinden hemen önce eklemelisiniz kodu...