Dostum aldığın hataya göre has_shortcode() fonksiyonu 2 kere oluşturulmuş diyor. Genelde bu olay, bir dosyanın 2 kere include edilmesiyle oluşuyor. Bu yüzden kontrol et demiştim. Madem hiç bir dosyada böyle bir şey yazmıyor, o halde has_shortcode fonksiyonu başka php dosyalarda 2 kere oluşturulmuş ya da eklentilerden birinde olabilir.
Temayı nereden indirdin, bir de ben bakayım.
Temayı nereden indirdin, bir de ben bakayım.
Biraz önce tema sürümünü yükselttim fakat sorun değişmedi yine hata veriyor. Fakat bu sefer verdiği satırda sadece } işareti bulunuyor halen çözebilmiş değilim. Aşağıda ilgili kısmı veriyorum 263.satırda problem olduğunu söylüyor wp 263. satır vereceğim koddaki son satırdır.
/*----------------------------------------------/
FUNCTION TO CHECK IF POST HAS SHORTCODE
/----------------------------------------------*/
function has_shortcode($shortcode = '') {
if ( have_posts() ){
$postID = get_the_ID();
$post_to_check = get_post($postID);
// false because we have to search through the post content first
$found = false;
// if no short code was provided, return false
if (!$shortcode) {
return $found;
}
// check the post content for the shortcode
if ( stripos($post_to_check->post_content, '[' . $shortcode) !== false ) {
// we have found the short code
$found = true;
}
// return our final results
return $found;
}
}