Forums

How to show just excerpts on main page? (13 posts)

  1. evergreen
    Member
    Posted 6 years ago #

    Hi,

    I set up WP recently. I added 3 post so far and it shows the FULL post on the main page. While this is ok for 3 posts, when I have 10 it will be a huge page. How do I set it up to just show the excerpts?

    I looked in my template for the main page and found this code:

    <div class="storycontent">
    <?php the_content(__('(more...)')); ?>
    </div>

    I read some docs, but don't see how to change this. I can't find an option in the admin to do it either.

    Help! :D

    Thanks

  2. Joshua Sigar
    Member
    Posted 6 years ago #

    Change the following...
    <?php the_content(__('(more...)')); ?>

    ..to ...
    <?php the_excerpt(); ?>

  3. evergreen
    Member
    Posted 6 years ago #

    Thanks!

    Is there any way to add a More . . . link to the end of the text? I know the title is linked, but adding the more . . . would be much better from a usability standpoint.

  4. Joshua Sigar
    Member
    Posted 6 years ago #

    <a href="<?php the_permalink() ?>">Read more...</a>

  5. phy54
    Member
    Posted 6 years ago #

    when i replace the code above, i only see the summary and when i click the heading of the post or "read more" i still get the summary...please help

    how can i have the summary on the main page and then click on the heading or "read more" to see the rest of the post?

  6. Joshua Sigar
    Member
    Posted 6 years ago #

    1. Copy the index.php and name the copy single.php
    2. In single.php replace ..
    the_excerpt()
    ..with...
    the_content()

  7. HighOctane
    Member
    Posted 6 years ago #

    I'm having the same problem, and I can't find the above mentioned "Change the following...
    <?php the_content(__('(more...)')); ?>

    ..to ...
    <?php the_excerpt(); ?>"

    http://www.wagnertech.net/blog
    Any other suggestions?

    Thanks in advance.

  8. oriecat
    Member
    Posted 6 years ago #

    Your page is already showing the excerpt. Which part of the above are you trying to do now?

  9. HighOctane
    Member
    Posted 6 years ago #

    If you look at other WP blogs, the main page entries are just excerpts with links to the full article, mine shows the full article .
    How do I correct this.

  10. jonimueller
    Member
    Posted 6 years ago #

    I'm using a plugin called Post Teaser for this on my site (http://www.babygotblog.com). You can determine how many words you want to appear and customize the stats that go along with it.

    The plugin is here:
    http://dev.wp-plugins.org/wiki/PostTeaser

  11. HighOctane
    Member
    Posted 6 years ago #

    Thanks,
    I've installed the Post Teaser plugin, and it worked on all the pages, BUT my main page??? take a look ( http://www.wagnertech.net/blog ).
    My best guess is... There is a problem with the main catagory and main page. It shows to have MOPAR as my main catagory in WP-Admin, and all the articles are as they should be, "excerpted". when you go to that page.

    Any other thoughts?

  12. andretoscano
    Member
    Posted 6 years ago #

    Hi.
    I ran into this problem yesterday.
    Found out a quick and easy way to fix it.

    Follow these instructions:

    1. Create a new post
    2. Do not introduce anything at the "Excerpt" field (in fact, disable Advanced Editing)
    3. Write your post
    4. Introduce the following tag <!--more--> at the place where you want the text to break

    And there you have it!
    Your post should now have something like (more...) or (read everything...) at the place where you included the tag.
    I am assuming you are still running wordpress with the php the_content tag in place.

    If you want to change what's inside the brackets, just go to Presentation>Theme Editor and edit the Main Template, and then find the_content tag and change it to something like '<?php the_content(__('(hey! Why not read the rest of this message, since you got this far?)')); ?>'

    Hope this helps.

    Cheers.

  13. HighOctane
    Member
    Posted 6 years ago #

    THANKS!!!!!!!

    That did the trick! Thanks again :o)

Topic Closed

This topic has been closed to new replies.

About this Topic