wordpress display lastest post on homepage
-
Ok so i found the tutorial to add the lastest post on my homepage which is :
<?php // Include WordPress define('WP_USE_THEMES', false); require('./wordpress/wp-load.php'); query_posts('showposts=1'); ?>
and the code for the body where i want it displayed is:
<?php while (have_posts()): the_post(); ?> <center><h3><?php the_title(); ?></h3></center> <?php the_excerpt(); ?> <a href="<?php the_permalink(); ?>" target="_new">Read more..</a> <?php endwhile; ?>
So what im trying to find out, is what coding do i need to add/change to so it will only display like the first sentence of the post and not the full post. So that i can have the read more link at the bottom and really have them click it and read more. cause right now its displaying the full post and it is pointless to have the read more link.
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘wordpress display lastest post on homepage’ is closed to new replies.