• I’ve been searching for how to have my blog page only show a summary of the full post and have the read more link to the full post. I was reading Alexis403’s post How do I show a summary of posts on the home page and… . Which at first, I thought was the answer to my particular problem.

    So I -blindly- went ahead and opened up the editor under appearance and started editing my index.php. Funny thing is, my theme(Twenty Twelve) doesn’t have a the_content() function in it’s index.php file, but it did have this` <?php /* Start the Loop */ ?>
    <?php while ( have_posts() ) : the_post(); ?>
    <?php get_template_part( ‘content’, get_post_format() ); ?>
    <?php endwhile; ?>`

    So I replaced the, the_post() function with the_excerpt. Pretty cool, it kind of looked like a broke my blog page.
    But I’m not that imprudent; any time I make changes to anything on my theme, I locally create a folder for it, and backup the original contents of the file I’m editing, and if anything breaks then I simply copy and paste the original code or if I like what I see I make “_modified” version of the file and save it in the same folder. I want to try to understand what I’m doing, so I figured it’s a good way to start.

    So after playing with the code a bit more, I realized a funny thing, my homepage is set to static: frontpage (About) and post (Blog). So the previous thread wouldn’t apply to me, and editing the index.php file wouldn’t change my blog page to the way I want it.

    I kind of want to edit the content.php file to see if maybe there is something that relates to my blog(posts) page and maybe insert the_excerpt() in there. But I don’t know if this will affect my pages globally or if it even is the correct way of doing it.

    I would appreciate any help on this matter, I really want to learn how to make these sort of changes manually. I have virtually zero experience with php in particular so pardon if I sound like a fool.

Viewing 6 replies - 1 through 6 (of 6 total)
  • I think what you may need to do is set your Front Page to your blog posts. Don’t set it to a static page. I don’t think you need to edit your php files just yet. Look for settings in your Dashboard for reading and see if there’s something there for your posts. Go through all of your settings so that you really understand them.

    Hope this helps, but I’m a newbie too…

    Thread Starter n0tion

    (@n0tion)

    Thank you for the response @carrimak. I want to have my site set up with a static homepage, as it’s a personal website. Though I post regularly I don’t think I want it to be the focus of my site.

    I still tried setting my front page to display my post to see if anything changed in my index.php. I also searched in settings for an option to display post summaries but I didn’t find anything relevant. Except for how articles will show in a feed.

    I’m sure it’s possible to show posts summaries on my blog page with out having to set it as my frontpage. I’ve seen it on a couple of sites.

    hmmm….what do you want on your home page?

    This plugin might help…but I don’t know if it’s been updated to 3.9.1

    Plugin here:

    Thread Starter n0tion

    (@n0tion)

    Basically the homepage will be an About page. I want to stay away from plugins for this issue. I want to have the added advantage of understanding how my site is structured and ultimately how it works it terms of code.

    Thread Starter n0tion

    (@n0tion)

    What if I make a custom php file for my blog page? Would this allow me to always display all posts on my blog page in summary, without affecting any other page on my site?

    Don’t know….you are way into more PHP coding than I am (yet).

    Still think there’s a plugin among the thousand of plugins that would do the job. But if this is a learning experiment, that’s different…..

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Show post summary on blog page’ is closed to new replies.