问个wp的php问题
344
- homehe2014-02-21高级会员58528
1在主题的index.php中
post_content,650); ?>2.在function.php中
if (!function_exists('character_limiter'))
{function character_limiter($str, $n = 500, $end_char = '…')
{
if (strlen($str) = $n)
{
return trim($out).$end_char;
}
}
}
}?>
以上方法,打不开网页,请高手指教哪里出错了.谢谢