Support » Theme: Singl » Post Summary on Single Page

  • rizqifahma

    (@rizqifahma)


    Hi guys,

    I’d like to ask, how to display post summary on a single page (like blog page) automatically, rather than display it as a full post at once?

Viewing 6 replies - 1 through 6 (of 6 total)
  • bravokeyl

    (@bravokeyl)

    Then where do you want to use full content of a post , just curious.

    rizqifahma

    (@rizqifahma)

    Hi bravokeyl

    I want my posts on my blog page (http://rizqifahma.com/blog) showed as summaries, like every blog post on Socially Awkward theme (http://locallylost.com/socially-awkward/blog/). So, visitors will only see summaries on the page, if they want to see the full content, they can click the post’s link.

    bravokeyl

    (@bravokeyl)

    oh , i misunderstood it before.I thought single post page when you said single page.

    bravokeyl

    (@bravokeyl)

    If you want to display excerpts …you need to change the code , you need to create a child theme and copy the content.php file from parent theme and paste it in the child theme and then go to line 39 where it says

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

    change that to

    <?php if ( is_search() || is_home() ) : // Only display Excerpts for Search & blog posts page ?>

    rizqifahma

    (@rizqifahma)

    Thank you for your help, bravokeyl

    I replaced the code, the page displayed excerpts, but unfortunately, it affected the other posts with other post formats, like video and image. It didn’t display them as they used to be.

    I think, I have to put “read more” on my posts later, though it is not the thing that I prefer.

    sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    @rizqifahma, give this a try instead. It worked well on my Singl test site. Props to @kathryn for the help on it (I was trying to make it too complicated).

    <?php if ( is_search() ||  ( is_home() && ! has_post_format() ) ) : // Only display Excerpts for Search or if no post format present (standard) ?>

    It will excerpt search and standard posts and leave all other post formats full content.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Post Summary on Single Page’ is closed to new replies.