• 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! ??

    Thanks

Viewing 12 replies - 1 through 12 (of 12 total)
  • Change the following…
    <?php the_content(__('(more...)')); ?>

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

    Thread Starter evergreen

    (@evergreen)

    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.

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

    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?

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

    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(); ?>”

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

    Thanks in advance.

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

    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.

    I’m using a plugin called Post Teaser for this on my site (https://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:
    https://dev.wp-plugins.org/wiki/PostTeaser

    Thanks,
    I’ve installed the Post Teaser plugin, and it worked on all the pages, BUT my main page??? take a look ( https://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?

    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.

    THANKS!!!!!!!

    That did the trick! Thanks again :o)

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘How to show just excerpts on main page?’ is closed to new replies.