Hallo.
Ich binde so einen Loop ein:
PHP
<?php query_posts("cat=201&showposts=1&order=DESC"); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<p style="font-size: 11px;"><?php echo the_time('d.m.Y'); ?></p>
<p class="lclass"><a href="<?php echo get_permalink(); ?>"><?php the_title(); ?></a></p>
<p class="auszug"><?php the_excerpt(); ?> </p>
<?php endwhile; endif; ?>
Leider wird bei mir dann kein
angezeigt. Jetzt habe ich schon verschiedene Codes für die functions.php benutz wie beispielsweise:
HTML
function new_excerpt_length($length) { return 20; } add_filter('excerpt_length', 'new_excerpt_length');
und
PHP
function new_excerpt_more($more) { global $post; return '<a href="'. get_permalink($post->ID) . '">Read the Rest...</a>'; } add_filter('excerpt_more', 'new_excerpt_more');
aber nichts wird angezeigt. Habe Wordpress 3.1.2.
Kann mir da jemand helfen wieso nicht?
bg
Fisch