Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End the_excerpt Reply To: the_excerpt

#189297
Shpend Berisha
Participant

try like this

<?php
/*
Template Name: Homepage
*/
get_header();
$page_num = $paged;
if ($pagenum='') $pagenum =1;
query_posts('showposts=-1&paged='.$page_num); ?>
<h2><?php the_title(); ?></h2>
<?php if ( have_posts() ) : ?>
<ul>
<?php while ( have_posts() ) : the_post(); ?>
<li><?php the_time( get_option( 'date_format' ) ); ?>: <a href=”<?php the_permalink(); ?>”>
<?php the_title(); ?></a><?php the_excerpt(); ?></li>
<?php endwhile; ?>
</ul>
<?php endif; ?>
<?php get_footer(); ?>