Nochmal ne Frage:
Was müsste ich an dem code
PHP
<ul><?php
$posts = get_posts('numberposts=5&category=9');
foreach($posts as $post) : ?>
<li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a><li>
<?php endforeach; ?>
</ul>
ändern, damit er mir nicht nur die Permalinks zu den Artikeln sondern gleich die ganzen Artikel anzeigt?
Hier ist übrigens nochmal mein page-id Code:
PHP
<?php
/*
Template Name:Page-ID
*/
?>
<?php get_header(); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h1><?php the_title(); ?></h1>
<div class="descr"><?php the_time('F jS, Y') ?> by <?php the_author() ?></div>
<ul><?php
$posts = get_posts('numberposts=5&category=9');
foreach($posts as $post) : ?>
<li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a><li>
<?php endforeach; ?>
</ul>
<div class="entry">
<?php the_content('Read the rest of this entry »'); ?>
</div>
</div>
<?php endwhile; ?>
<?php else : ?>
<h2 align="center">Not Found</h2>
<p align="center">Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<div class="clearer"> </div>
</div>
<?php get_footer(); ?>
Alles anzeigen