<?if (preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])){die();}?>
<?php
if($posts[0]->post_type=='news'){
include('single_news_t.php');
}
elseif($posts[0]->post_type=='attachment'){
include('single_attach_t.php');
}
elseif($posts[0]->post_type=='series'){
include('single_series_t.php');
}
elseif($posts[0]->post_type=='episodes'){
include('single_episodes_t.php');
}else{
$video_single_file = ayd_getmeta($post->ID, 'content_single_file', true);
if($video_single_file==2)
{
include('single_video_v.php');
}else{
if($ss['standart_single']==2){
include('single_video_v.php');
}else{
include('single_video_t.php');
}
}
}
?> Yazı Öncesine Reklam Ekleme
3
●134
- 10-08-2019, 00:14:14Postun altına ve üstüne banner yerleştirmek için kodu tam olarak nereye koymam gerekiyor.
- 10-08-2019, 00:22:03Bu temada çalışmıyor eklentiler.Misafir adlı üyeden alıntı: mesajı görüntüle
- 13-08-2019, 14:37:50Eklenti kullanmadan functions.php dosyasını açın ve aşağıdaki kodları ekleyin.sasaleyte adlı üyeden alıntı: mesajı görüntüle
add_filter( 'the_content', 'top_and_bottom_ads' ); function top_and_bottom_ads( $content ) { if (is_single()) { $adsTop = ''; // Yazı üstüne reklam alanı için buraya reklam kodunuzu ekleyin. $adsBottom = ''; // Yazı altına reklam alanı için buraya reklam kodunuzu ekleyin. return $adsTop . $content . $adsBottom; } return $content; }