Ich nutze das HemingwayEx-Theme auf Vries-Land.de. Standardmäßig sieht man dort die Exzerpte (man kann die Buchstabenanzahl angeben) der letzten beiden Posts (wie z.B. hier beim Entwickler zu sehen). Was ich nun gerne machen würde, wäre in der linken Spalte ein vollständiger Post und rechts daneben 3 oder 4 ganz kurze Exzerpte - sprich ich würde gerne den Aufruf von normalen Posts mit dem Aufruf von Exzerpten kombinieren.
Der entsprechende Teil des Haupt-Index-Templates lautet im Original
<?php
// Here is the call to only make two posts show up on the homepage REGARDLESS of your options in the control panel
$category_id = $hemingwayEx->get_asides_category_id();
is_null($category_id) ? query_posts('showposts=2') : query_posts('showposts=2&cat=-' . $category_id);
?>
<?php if (have_posts()) : ?>
<?php $first = true; ?>
<?php while (have_posts()) : the_post(); ?>
<div class="story<?php if($first == true) echo " first" ?>">
<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>
<?php $hemingwayEx->excerpt() ?><span class="read-on"><a href="<?php the_permalink() ?>">read on</a></span>
<div class="details">
<?php echo _('Posted at') ?> <?php the_time('ga \o\n ' . $hemingwayEx->date_format(true) . '/y') ?> | <?php comments_popup_link('no comments', '1 comment', '% comments'); ?> | Filed Under: <?php the_category(', ') ?>
</div>
</div>
<?php $first = false; ?>
<?php endwhile; ?>
Alles anzeigen
Ich habe dies nun mit meinen bescheidenen Kenntnissen zunächst so verändert, dass momentan nur der eine letzte Post angezeigt wird und mein Code lautet jetzt:
<?php
// Here is the call to only make two posts show up on the homepage REGARDLESS of your options in the control panel
// $category_id = $hemingwayEx->get_asides_category_id();
is_null($category_id) ? query_posts('showposts=1') : query_posts('showposts=2&cat=-' . $category_id);
?>
<?php if (have_posts()) : ?>
<?php $first = true; ?>
<?php while (have_posts()) : the_post(); ?>
<div class="story<?php if($first == true) echo " first" ?>">
<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Zum Artikel <?php the_title(); ?>"><?php the_title(); ?></a></h3>
<?php the_content('<p class="serif">weiterlesen »</p>'); ?>
<div class="details">
<?= _('Erstellt um') ?> <?php the_time('G\:i \a\m ' . $hemingwayEx->date_format(true) . '/y') ?> | <?php comments_popup_link('Keine Kommentare', '1 Kommentar', '% Kommentare'); ?> | Themen: <?php the_category(', ') ?>
</div>
</div>
<?php $first = false; ?>
<?php endwhile; ?>
Alles anzeigen
Kann mir jemand dabei weiterhelfen, wie ich nun die Exzerpte der zweit- bis viertneuesten Posts in die rechte Spalte bekommen kann? Das wäre großartig - ich probiere auch gerne ein wenig aus, wenn ich einen Tipp habe, wie ich es angehen kann ... Vielen Dank