Halo Leute,
verwende für meine Startseite ein eigenes Template. Es wird ein statischer Text angezeigt und die letzten 3 Artikel. Jetzt möchte ich die Artikel einkürzen mit einem "Read More" Tage. Wenn ich den Artikel bearbeite und einen read more tag einfüge, funktioniert dieser nicht, also es wird immer noch der komplette text auf der startseite angezeigt.
Wer weiss weiter?? hier ma der code meines templates für die startseite
PHP
<?php
/*
Template Name: Frontpage3
*/
?>
<?php get_header(); ?>
<?php get_header(); ?>
<?php
$options = get_option('inove_options');
if (function_exists('wp_list_comments')) {
add_filter('get_comments_number', 'comment_count', 0);
}
?>
<?php if ($options['notice'] && $options['notice_content']) : ?>
<div class="post" id="notice">
<div class="content">
<?php echo($options['notice_content']); ?>
<div class="fixed"></div>
</div>
</div>
<?php endif; ?>
<div class="entry">
<?php the_post(); the_content('weiterlesen...'); ?>
</div>
<?php query_posts('showposts=3');?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); update_post_caches($posts); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a class="title" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<div class="info">
<span class="date"><?php the_time(__('F jS, Y', 'inove')) ?></span>
<?php if ($options['author']) : ?><span class="author"><?php the_author_posts_link(); ?></span><?php endif; ?>
<?php edit_post_link(__('Edit', 'inove'), '<span class="editpost">', '</span>'); ?>
<span class="comments"><?php comments_popup_link(__('No comments', 'inove'), __('1 comment', 'inove'), __('% comments', 'inove'), '', __('Comments off', 'inove')); ?></span>
<div class="fixed"></div>
</div>
<div class="content">
<?php the_content(__('Read more...', 'inove')); ?>
<div class="fixed"></div>
</div>
<div class="under">
<?php if ($options['categories']) : ?><span class="categories"><?php _e('Categories: ', 'inove'); ?></span><span><?php the_category(', '); ?></span><?php endif; ?>
<?php if ($options['tags']) : ?><span class="tags"><?php _e('Tags: ', 'inove'); ?></span><span><?php the_tags('', ', ', ''); ?></span><?php endif; ?>
</div>
</div>
<?php endwhile; ?>
<?php else : ?>
<div class="errorbox">
<?php _e('Sorry, no posts matched your criteria.', 'inove'); ?>
</div>
<?php endif; ?>
<div id="pagenavi">
<?php if(function_exists('wp_pagenavi')) : ?>
<?php wp_pagenavi() ?>
<?php else : ?>
<?php endif; ?>
<div class="fixed"></div>
</div>
<?php get_footer(); ?>
Alles anzeigen