Hallo Gemeinde,
mein Problem ist folgendes: ich lasse auf der Startseite meines Blogs immer den aktuellsten Beitrag anzeigen. Das dumme dabei: es kommt immer der komplette Beitrag, obwohl dort ein "more"-Attribut eingefügt ist. Ich habe mal das php angehängt, vielleicht sieht wer was. Ich jedenfalls nicht :(
PHP
<?php
/*
Template Name:Start
*/
?>
<SCRIPT LANGUAGE="Javascript">
var SCN_HEADLINES_FONT_COLOR="#FFFFFF";
var SCN_HEADLINES_BG_COLOR="#0c0c0c";
var SCN_HEADLINES_LINK_COLOR="#FFFFFF";
var SCN_HEADLINES_VLINK_COLOR="#FFFFFF";
var SCN_HEADLINES_HOVER_COLOR="#0484f4";
var SCN_HEADLINES_FONT="Arial";
var SCN_HEADLINES_FONT_BOLD="normal";
var SCN_HEADLINES_FONT_MEASURE="px";
var SCN_HEADLINES_HOVER_UNDERLINE="underline";
var SCN_HEADLINES_LINK_UNDERLINE="none";
var SCN_HEADLINES_FONT_SIZE=12;
var SCN_HEADLINES_TRANSPARENT=0;
var SCN_HEADLINES_HEADLINE_COUNT=10;
</SCRIPT>
<?php get_header(); ?>
<div id="content">
<h2>WELCOME TO MY WORLD - OUR WORLD!</h2><br/>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<!--
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Read',TEMPLATE_DOMAIN); ?> <?php the_title(); ?>"><?php the_title(); ?></a></h2>
-->
<?php if ($freshy_options['author']) : ?><small class="author"><?php the_author(); ?></small><?php endif; ?>
<?php if ($freshy_options['date']) : ?>
<small class="date"><?php if ($freshy_options['author']) : ?>|<?php endif; ?> <?php the_date() ?></small>
<?php endif; ?>
<?php if ($freshy_options['time']) : ?>
<small class="date"><?php if ($freshy_options['date']) : ?>|<?php endif; ?> <?php the_time() ?></small>
<?php endif; ?>
<div class="entry">
<?php the_content('<span class="readmore">'.__('Read the rest of this entry »',TEMPLATE_DOMAIN).'</span>'); ?>
</div>
</div>
<?php endwhile; ?>
<p class="navigation">
<span class="alignleft"><?php next_posts_link(__('« Previous Entries',TEMPLATE_DOMAIN)) ?></span>
<span class="alignright"><?php previous_posts_link(__('Next Entries »',TEMPLATE_DOMAIN)) ?></span>
</p>
<?php else : // nothing found ?>
<div class="post" id="post-none">
<h2><?php _e('Not found',TEMPLATE_DOMAIN); ?></h2>
<p><?php _e("Sorry, but you are looking for something that is not here",TEMPLATE_DOMAIN); ?></p>
</div>
<?php endif; ?>
<h2>Aktuelle Radsportnews...</h2><br/>
<SCRIPT LANGUAGE="JavaScript" SRC="http://www.radsport-aktiv.de/newsbox/newsbox_dhtml.php" target="_blank"></SCRIPT>
</div>
<?php // sidebars ?>
<?php if ($freshy_options['sidebar_right'] == true) get_sidebar(); ?>
<?php if ($freshy_options['sidebar_left'] == true) include (TEMPLATEPATH . '/sidebar_left.php'); ?>
</div>
<?php get_footer(); ?>
Alles anzeigen
Vielen Dank schon mal im Voraus fürs schauen und vielleicht auch helfen :)
Ciao,
Markus