Hallo zusammen,
benötige bitte dringend Hilfe!
Und zwar: unter http://www.markus-leitner.at schaut auf den ersten Blick alles ok aus. Geht man dann aber auf "Der Blog..." ist plötzlich die gleiche Überschrift wie auf der "Home-Seite". Obwohl auf der "Home"-Seite ein anderes Template verwendet wird als bei den Beiträgen (da sollte es "index.php" sein).
Hat wer eine Ahnung, warum dem so ist? Hier die beiden Scripte der Templates:
index.php
<?php get_header(); ?>
<div id="content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<p class="datum"><span class="jahr"> <?php the_time('Y') ?></span> <span class="tag"><?php the_time('j') ?></span> <span class="monat"><?php the_time('M') ?></span></p>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Read',TEMPLATE_DOMAIN); ?> <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<?php if ($freshy_options['author']) : ?><small class="author"><?php the_author(); ?></small><?php endif; ?>
<?php if ($freshy_options['date']) : ?>
<small class="date"><?php if ($freshy_options['author']) : ?>|<?php endif; ?> <?php the_date() ?></small>
<?php endif; ?>
<?php if ($freshy_options['time']) : ?>
<small class="date"><?php if ($freshy_options['date']) : ?>|<?php endif; ?> <?php the_time() ?></small>
<?php endif; ?>
<div class="entry">
<?php the_content('<span class="readmore">'.__('Read the rest of this entry »',TEMPLATE_DOMAIN).'</span>'); ?>
</div>
<div class="meta">
<dl>
<dt><?php _e('Comments',TEMPLATE_DOMAIN); ?></dt><dd><?php comments_popup_link(__('No Comments »',TEMPLATE_DOMAIN), __('1 Comment »',TEMPLATE_DOMAIN), __('% Comments »',TEMPLATE_DOMAIN)); ?></dd>
<dt><?php _e('Categories',TEMPLATE_DOMAIN); ?></dt><dd><?php the_category(', ') ?></dd>
<?php if(function_exists('the_bunny_tags')) : ?>
<?php the_bunny_tags('<dt>Tags</dt><dd>', '</dd>', ', '); ?>
<?php endif; ?>
<?php if(function_exists('the_bookmark_links')) : ?>
<dt><?php _e('Spread the word',TEMPLATE_DOMAIN); ?></dt><dd><?php the_bookmark_links(); ?></dd>
<?php endif; ?>
<?php if ('open' == $post-> comment_status) : ?>
<?php endif; ?>
<?php if ('open' == $post->ping_status) : ?>
<?php endif; ?>
<?php if ($user_ID) : ?>
<dt><img alt="<?php _e('Edit',TEMPLATE_DOMAIN); ?>" src="<?php echo get_bloginfo('stylesheet_directory') ?>/images/icons/edit-icon-16x16.gif" /> <?php edit_post_link(__('Edit',TEMPLATE_DOMAIN),'',''); ?></dt>
<?php endif; ?>
</dl>
</div>
</div>
<?php endwhile; ?>
<p class="navigation">
<span class="alignleft"><?php next_posts_link(__('« Previous Entries',TEMPLATE_DOMAIN)) ?></span>
<span class="alignright"><?php previous_posts_link(__('Next Entries »',TEMPLATE_DOMAIN)) ?></span>
</p>
<?php else : // nothing found ?>
<div class="post" id="post-none">
<h2><?php _e('Not found',TEMPLATE_DOMAIN); ?></h2>
<p><?php _e("Sorry, but you are looking for something that is not here",TEMPLATE_DOMAIN); ?></p>
</div>
<?php endif; ?>
</div>
<?php // sidebars ?>
<?php if ($freshy_options['sidebar_right'] == true) get_sidebar(); ?>
<?php if ($freshy_options['sidebar_left'] == true) include (TEMPLATEPATH . '/sidebar_left.php'); ?>
</div>
<?php get_footer(); ?>
Alles anzeigen
home.php (das der "Home"-Seite):
<?php
/*
Template Name:Home
*/
?>
<?php get_header(); ?>
<div id="content">
<h2>WELCOME TO MY WORLD - OUR WORLD!</h2><br/>
<!--
<h2>Aktuelle Radsportnews:</h2><br/>
<SCRIPT LANGUAGE="JavaScript" SRC="http://www.radsport-aktiv.de/newsbox/newsbox_dhtml.php" target="_blank"></SCRIPT>
-->
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<!--
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Read',TEMPLATE_DOMAIN); ?> <?php the_title(); ?>"><?php the_title(); ?></a></h2>
-->
<?php if ($freshy_options['author']) : ?><small class="author"><?php the_author(); ?></small><?php endif; ?>
<?php if ($freshy_options['date']) : ?>
<small class="date"><?php if ($freshy_options['author']) : ?>|<?php endif; ?> <?php the_date() ?></small>
<?php endif; ?>
<?php if ($freshy_options['time']) : ?>
<small class="date"><?php if ($freshy_options['date']) : ?>|<?php endif; ?> <?php the_time() ?></small>
<?php endif; ?>
<div class="entry">
<?php the_content('<span class="readmore">'.__('Read the rest of this entry »',TEMPLATE_DOMAIN).'</span>'); ?>
</div>
</div>
<?php endwhile; ?>
<p class="navigation">
<span class="alignleft"><?php next_posts_link(__('« Previous Entries',TEMPLATE_DOMAIN)) ?></span>
<span class="alignright"><?php previous_posts_link(__('Next Entries »',TEMPLATE_DOMAIN)) ?></span>
</p>
<?php else : // nothing found ?>
<div class="post" id="post-none">
<h2><?php _e('Not found',TEMPLATE_DOMAIN); ?></h2>
<p><?php _e("Sorry, but you are looking for something that is not here",TEMPLATE_DOMAIN); ?></p>
</div>
<?php endif; ?>
<h2>Aktuelle Radsportnews:</h2><br/>
<SCRIPT LANGUAGE="JavaScript" SRC="http://www.radsport-aktiv.de/newsbox/newsbox_dhtml.php" target="_blank"></SCRIPT>
</div>
<?php // sidebars ?>
<?php if ($freshy_options['sidebar_right'] == true) get_sidebar(); ?>
<?php if ($freshy_options['sidebar_left'] == true) include (TEMPLATEPATH . '/sidebar_left.php'); ?>
</div>
<?php get_footer(); ?>
Alles anzeigen
Hoffe, mir kann da wer helfen. Bitte in Newbie-verständlicher Weise ;)
Danke,
Markus