Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Kathryn Presner

    (@zoonini)

    There are a couple of different ways to do this.

    1. You can add the More tag to each post where you want it to split.

    2. You can use a plugin like this one to automatically add a More tag for you. (I haven’t used that specific plugin, it’s just one example you could try.)

    3. You can make a change in your child theme to automatically display a post excerpt on the blog. Since you have a child theme set up already, you might prefer this route. Here are the steps:

    (i) Copy content.php from the parent theme into your child if it’s not already.

    (ii) In your child theme’s copy of content.php, find this line (it’s line 27 if you haven’t already made other modifications)

    <?php if ( is_search() ) : // Only display Excerpts for Search ?>

    (iii) In your child theme’s copy of content.php, change that line to:

    <?php if ( is_search() || is_home() ) : // Only display Excerpts for Search and Blog ?>

    Let me know how it goes.

    Thread Starter Brandi Mahon

    (@blmahon)

    that worked beautifully on the first few blog posts on the blog page… but it didn’t appear to work for all..

    https://www.commentsfromthecar.com/blog/

    Let me know what I did wrong….

    Thanks for all of your help Kathryn!

    Moderator Kathryn Presner

    (@zoonini)

    For the posts that weren’t excerpted, the format is set to something other than Standard, for example it’s the Video post format on these two:

    https://www.commentsfromthecar.com/sir-reilly-gets-the-snip/
    https://www.commentsfromthecar.com/building-trust-as-an-interpreter-for-the-deaf/

    Let me do some further testing to see what we can do to fix it and I’ll get back to you.

    Moderator Kathryn Presner

    (@zoonini)

    Hmm – I just did a test and the excerpts work fine on my test site with Video post format posts. Could you try turning off the Featured Video Plus plugin to see if it’s interfering somehow? If that’s the culprit you may have to use the More tag on those posts.

    Thread Starter Brandi Mahon

    (@blmahon)

    so I changed the post format to standard on all and that fixed the issue….

    Originally I had chosen those different formats to test to see what they did to the blog posts, and I was not really able to see a difference. Is there documentation showing what those different formats look for posts?

    Thanks Kathryn!

    Moderator Kathryn Presner

    (@zoonini)

    Glad you solved the issue by changing the post format to Standard.

    There isn’t specific documentation describing what each post format looks like, but there are slightly different templates for each format, which are found in these files:

    content-aside.php
    content-gallery.php	
    content-image.php
    content-link.php
    content-quote.php	
    content-video.php
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘how to show only excerpts for blog roll’ is closed to new replies.