Hallo Liebe User
ich habe nun einmal mein Theme gewechsel und habe ein Problem. Wenn ich nun eben den Code für das "Read the Rest of this Entry" einbauen möchte, klappt dies zwar, doch erscheint nun unter dem abgekürztem Artikel und dem Eintrag eben der Artikel ohne diesen Zusatz noch einmal.
Der Ausdruck der hierbei ja eingefügt werden muss ist:
<div class="postContent"><?php the_content('[Read the rest of this entry...]'); ?></div>
Und ich würde nun einmal annehmen, dass ich eben diesen an der falschen Stelle eingebe. Der Code des Templates wäre:
PHP
<?php get_header(); ?>
<!-- start content -->
<div id="content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<p class="byline"><small><?php the_time('F jS, Y') ?> by <?php the_author() ?> <?php edit_post_link('Edit', ' | ', ''); ?></small></p>
<div class="entry">
<?php the_excerpt(); ?>
</div>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Previous Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Next Entries »') ?></div>
</div>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
</div>
<!-- end content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Alles anzeigen
Könnte mir hier jemand behilflich sein und sagen wie die Datei auszusehen hat oder wo mein Gedankenfehler liegt?
Besten Dank