Hallo Allerseits,
ich habe gerade das Problem das die manuell vergebenen Seitentitel (ich nutze wp-seo) nicht im Frontend ausgegeben werden.
Ich vermute das Problem in header.php aber kann einfach viel zu wenig php um das alleine zu schaffen.
Könnte mir hier jemand weiterhelfen?
Der Code des Headers lautet:
PHP
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php get_bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta http-equiv="content-language" content="en" />
<?php
get_tech_options();
global $tech;
$tech_disable_nav = get_post_meta($post->ID, "Nav_value", $single = true);
if($tech['seo'] == On) {
if(is_single()) {
if ( have_posts() ) {
while ( have_posts() ) {
the_post(); ?>
<meta name="description" content="<?php $excerpt = strip_tags(get_the_excerpt()); echo $excerpt; if ( $cpage < 1 ) {} else { echo (' - comment page '); echo ($cpage);} ?>" />
<meta name="keywords" content="<?php foreach((get_the_category()) as $category) { echo $category->cat_name . ','; } $posttags = get_the_tags();if ($posttags) {foreach($posttags as $tag) {echo $tag->name . ','; } } ?>" />
<?php }
}
} elseif(is_home()) { ?>
<meta name="description" content="<?php bloginfo('description'); ?>" />
<?php } ?>
<title>
<?php
if ( is_single() ) {
wp_title('');
if ( $cpage < 1 ) {}
else {
echo (' - comment page ');
echo ($cpage);
}
echo " | ";
}
bloginfo('name');
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
if ($paged > 1) {
echo " - Page $paged";
} ?>
</title>
<?php
}//End tech_seo
else { ?>
<meta name="description" content="<?php bloginfo('description'); ?>" />
<title><?php bloginfo('name'); ?></title>
<?php
} ?>
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
<?php
if ($tech['static_css'] == "Dynamic") {
if ($tech['head_css'] != "no"){ ?>
<link rel="stylesheet" type="text/css" media="screen" href="<?php bloginfo('template_directory') ?>/style.css" />
<style>
<?php include_once (TEMPLATEPATH . '/style.php');
echo '</style>';
} else {
?>
<link rel="stylesheet" type="text/css" media="screen" href="<?php bloginfo('home') ?>/?techozoic_css=css"/>
<?php }
} else {
?>
<link rel="stylesheet" type="text/css" media="screen" href="<?php bloginfo('template_directory') ?>/style.css" />
<?php }
?>
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" media="screen" href="<?php bloginfo('template_directory') ?>/ie6.css" />
<![endif]-->
<!--[if gte IE 7]>
<link rel="stylesheet" type="text/css" media="screen" href="<?php bloginfo('template_directory') ?>/ie8.css" />
<![endif]-->
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php if ($tech['favicon_image']) {?>
<link rel="icon" href="<?php echo $tech['favicon_image'];?>" type="image/x-icon" />
<link rel="shortcut icon" href="<?php echo $tech['favicon_image'];?>" type="image/x-icon" />
<?php }
if ( is_singular() ) wp_enqueue_script( 'comment-reply' );
wp_head(); ?>
</head>
Alles anzeigen
Das Template hat von zuhause aus zwar einige rudimentäre SEO-Einstellungen zur Vermeidung von DC aber die sind ausgestellt um keine Konflikte zu erzeugen.
habe auch schon etwas im Code rumgeschraubt aber immer war danach die Site garnicht mehr erreichbar
Vielen dank schonmal
Gruss robert