SOLVED: Aut. Auszug von erstem Artikel ohne more Link
Hi,
wie viele hier, möchte ich nur einen Auszug eines Artikels anzeigen.
Ich habe mir die index.php kopiert und als home.php abgespeichert um sie als gesonderte Startseite zu verwenden.
Wenn ich die the_excerpt Funktion oder diverse Plugins (PostTeaser - WordPress Plugin Repository - Trac, Fancy Excerpt | Semiologic, Evermore: a WordPress plugin » Semicolon) anwende, fällt mir auf, dass die Funktion bzw. die Plugins alle Beiträge automatisch kürzen.
Nun ich möchte auf meiner home.php immer nur einen Auszug meines neuesten Beitrags ansehen. Das klappt soweit. Allerdings erscheinen auf allen anderen Beitragsseiten die Beiträge ebenfalls gekürzt.
Da dieses Thema ja schon mehrmals angesprochen wurde, vermute ich einen Fehler meinerseits und poste hier mal den Code von dem LOOP aus der home.php:
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="story">
<div class="datetime"><?php the_time('M') ?><span><?php the_time('jS') ?></span></div>
<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>
<div class="postin">
<span class="p_author"><?php the_author() ?></span>
<span class="p_category"><?php the_category(', ') ?></span>
<?php if ( (function_exists('UTW_ShowTagsForCurrentPost')) ) { ?><span class="p_tags"><?php UTW_ShowTagsForCurrentPost("commalist") ?></span><?php }?>
<span class="p_read"><a href="<?php the_permalink() ?>">Read on</a></span>
</div>
<?php // HIER IST DIE FUNKTION ?>
<?php the_excerpt(); ?>
<div style="clear:both;">
<?php the_content('Read the rest of this entry »'); ?>
</div>
<div class="details">
<div class="p_comments"><?php comments_popup_link('Add comments', '1 comment', '% comments'); ?></div>
</div>
</div>
<?php endwhile; ?>
<div class="navigation">
<?php next_posts_link('« Previous Entries |') ?><?php previous_posts_link(' Next Entries »') ?>
</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; ?>
Alles anzeigen