WordPress.org

Ready to get started?Download WordPress

Forums

Post Summary (6 posts)

  1. aruffell
    Member
    Posted 5 years ago #

    For some reason, when i post something onto my blog, it shows the whole story, i only want it to show a summary of the post.

    Link - http://77.96.225.53/wordpress/

    Any ideas how i do it?

    Thanks,

    Andy

  2. stvwlf
    Member
    Posted 5 years ago #

    looks like your main blog page. edit file index.php and change the_content() to the_excerpt() that will show the summary (called an excerpt in WP)

  3. aruffell
    Member
    Posted 5 years ago #

    Did that -

    <?php get_header(); ?>
    <?php include(TEMPLATEPATH."/sidebar_l.php");?>
    <!-- Main Post Content starts from here -->
    <div id="content">
    			<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    			<div class="entries"><!-- entries-->
    			<h3 class="heading"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
    			<div class="post"><!--post-->
    			<?php the_excerpt(('<strong>Read More...</strong>'));?>

    Still doing it though.

    Andy

  4. aruffell
    Member
    Posted 5 years ago #

    Ok, i managed to get it to show as an excerpt, but when i go to the category its full size again, i only want it to be full size when you go onto the item in question.

    How do i add a "Read More" button also?

    Andy

  5. Roy
    Member
    Posted 5 years ago #

    Your archive.php needs the_excerpt too! And your search.php probably as well. There's also excerpt plugins in the plugin section to do all that for you (and prettier too).

  6. moshu
    Member
    Posted 5 years ago #

    Either "read more" or the excerpt. Out of the box you cannot have both.

    However, search for excerpt related plugins to make it as you would like it.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.