سلام
راستش من امروز وردپرسی که روی لوکال نصب کرده بودم رو آنلاین کردم...!!!
خیلی مشکل پیش اومد که با بدبختی رسید به حداقل...
الان وقتی قالب سایتم رو فعال می کنم تو محیط کنترل پنل با مشکل روبرو می شم:
Warning: Cannot modify header information - headers already sent by (output started at /home/biabebar/public_html/wp-content/themes/bia2bebar-temp/functions.php:15) in /home/biabebar/public_html/wp-login.php on line 349
Warning: Cannot modify header information - headers already sent by (output started at /home/biabebar/public_html/wp-content/themes/bia2bebar-temp/functions.php:15) in /home/biabebar/public_html/wp-login.php on line 361
صفحه اصلی سایت بدون مشکل بالا میاد....
از فایل فانکشن قالبم هم چیزی حالیم نشد، از خط 15 به بعد رو اینجا می زارم ممنون می شم راهنماییم کنید.
<?php
register_sidebars(1, array(
name=>'تبلیغ',
'before_title'=>'<div class="box2 cls"><div class="title">',
'after_title'=>'</div>',
'before_widget' => '<div class="body"><center><br />',
'after_widget' => '<br /></center></div>'));
register_sidebars(1, array(
name=>'ستون',
'before_title'=>'<div class="box2 cls"><div class="title">',
'after_title'=>'</div>',
'before_widget' => '<div class="body"><center><br />',
'after_widget' => '<br /></center></div>'));
register_sidebars(1, array(
name=>'تبلیغات بالای پست ها'));
register_sidebars(1, array(
name=>'تبلیغات پایین پست ها'));
register_sidebars(1, array(
name=>'فوتر 1'));
register_sidebars(1, array(
name=>'فوتر 2'));
register_sidebars(1, array(
name=>'فوتر 3'));
register_sidebars(1, array(
name=>'فوتر 4'));
add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 70, 70, true );
// retreives image from the post
function getImage($num) {
global $more;
$more = 1;
$content = get_the_content();
$count = substr_count($content, '<img');
$start = 0;
for($i=1;$i<=$count;$i++) {
$imgBeg = strpos($content, '<img', $start);
$post = substr($content, $imgBeg);
$imgEnd = strpos($post, '>');
$postOutput = substr($post, 0, $imgEnd+1);
$image[$i] = $postOutput;
$start=$imgEnd+1;
$cleanF = strpos($image[$num],'src="')+5;
$cleanB = strpos($image[$num],'"',$cleanF)-$cleanF;
$imgThumb = substr($image[$num],$cleanF,$cleanB);
}
if(stristr($image[$num],'<img')) { echo $imgThumb; }
$more = 0;
}
//retreive image ends
?>