PHP
<!-- Newest Blog Entry -->
[COLOR="Red"][B]<?php query_posts('showposts=1'); ?>[/B][/COLOR]
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
Wenn der Fehler dann immernoch auftritt, dann liegt er mit ziemlicher Sicherheit woanders.
EDIT: Oh ich seh grad, da fehlt jeweils noch ein <?php endif; ?> nach <?php endwhile; ?>
PHP
<?php
/*
Template Name: Front Page
*/
?>
<?php get_header(); ?>
<div id="content">
<!-- Static Front Page -->
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h2><?php the_title(); ?></h2>
<?php the_content(); ?>
<?php endwhile; ?>
<?php endif; ?>
<!-- Newest Blog Entry -->
<?php query_posts('showposts=1'); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php the_content(); ?>
<?php endwhile; ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Alles anzeigen