에서 헤더 오류가 발생의 functions.php 파일으로 출력한다 나쁜 헤더 오류 오메 :functions.php 내가 내 워드 프레스 테마에 문제가 워드 프레스
Warning: Cannot modify header information - headers already sent by (output started at /home/slavisap/public_html/femarkets/wordpress/wp-content/themes/Flex E/functions.php:67) in /home/slavisap/public_html/femarkets/wordpress/wp-includes/pluggable.php on line 934
내가 어떤 페이지를 방문하려고 할 때 또는 그것은 무작위로 발생 관리자에게서 다른 것을 만드십시오.
이 내 functions.php입니다 :
<?php
if (function_exists('register_nav_menus')) {
register_nav_menus(
array(
'primary' => 'Primary Header Nav',
'footer_menu' => 'Footer Menu',
'exploring' => 'Exploring Page Menu',
'using' => 'Using Page Menu',
'downloading' => 'Downloading Page Menu'
)
);
}
function get_breadcrumbs() {
global $wp_query;
if (!is_home()) {
// Start the UL
echo '<ul class="breadcrumbs">';
// Add the Home link
echo '<li><a href="' . get_settings('home') . '">' . get_bloginfo('name') . '</a></li>';
if (is_category()) {
$catTitle = single_cat_title("", false);
$cat = get_cat_ID($catTitle);
echo "<li> / " . get_category_parents($cat, TRUE, " / ") . "</li>";
} elseif (is_archive() && !is_category()) {
echo "<li> / Archives</li>";
} elseif (is_search()) {
echo "<li> / Search Results</li>";
} elseif (is_404()) {
echo "<li> / 404 Not Found</li>";
} elseif (is_single()) {
$category = get_the_category();
$category_id = get_cat_ID($category[0]->cat_name);
echo '<li> / ' . get_category_parents($category_id, TRUE, " / ");
echo the_title('', '', FALSE) . "</li>";
} elseif (is_page()) {
$post = $wp_query->get_queried_object();
if ($post->post_parent == 0) {
echo "<li> / " . the_title('', '', FALSE) . "</li>";
} else {
$title = the_title('', '', FALSE);
$ancestors = array_reverse(get_post_ancestors($post->ID));
array_push($ancestors, $post->ID);
foreach ($ancestors as $ancestor) {
if ($ancestor != end($ancestors)) {
echo '<li> » <a href="' . get_permalink($ancestor) . '">' . strip_tags(apply_filters('single_post_title', get_the_title($ancestor))) . '</a></li>';
} else {
echo '<li> » ' . strip_tags(apply_filters('single_post_title', get_the_title($ancestor))) . '</li>';
}
}
}
}
// End the UL
echo "</ul>";
}
}
?>
내 웹 사이트 URL : http://slavisaperisic.com/femarkets/wordpress/
당신은 내가 잘못 무엇을 알 수 있습니까?
글쎄, 무엇을'/ 집/slavisap/public_html/femarkets/wordpress/wp-content/themes/Flex E/functions.php는 67 행에 있습니까? –