Hallo Leute,
ich verwende das theme "inove". Nun möchte ich gerne eine statische Startseite und danach die letzten 3 Artikel ausgeben. Soweit so gut.
hab in wordpress statische startseite angeben. Die Seite die ich angebenen habe habe ich ein template angeben welches ich zuvor erstellt habe. meine Statische seite wird ausgeben und danach aber nur 1 artikel und nicht 3 wie ich im template festgehalten habe.
weiss echt nicht mehr weiter... hier ma der code von meinem template
PHP
<?php
/*
Template Name: Frontpage2
*/
?>
<?php get_header(); ?>
<div class="entry">
<?php the_post(); the_content(''); ?>
</div>
<?php query_posts('showposts=3');?>
<?php if (have_posts()) : the_post(); update_post_caches($posts); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><?php the_title(); ?></h2>
<div class="info">
<span class="date"><?php the_modified_time(__('F jS, Y', 'inove')); ?></span>
<?php edit_post_link(__('Edit', 'inove'), '<span class="editpost">', '</span>'); ?>
<?php if ($comments || comments_open()) : ?>
<span class="addcomment"><a href="#respond"><?php _e('Leave a comment', 'inove'); ?></a></span>
<span class="comments"><a href="#comments"><?php _e('Go to comments', 'inove'); ?></a></span>
<?php endif; ?>
<div class="fixed"></div>
</div>
<div class="content">
<?php the_content(); ?>
<div class="fixed"></div>
</div>
</div>
<?php include('templates/comments.php'); ?>
<?php else : ?>
<div class="errorbox">
<?php _e('Sorry, no posts matched your criteria.', 'inove'); ?>
</div>
<?php endif; ?>
<?php get_footer(); ?>
Alles anzeigen
wer kann helfen??? bin echt am verzweifeln