WordPress.org

Forums

Bushwick
[resolved] How to show only post titles on home page? (5 posts)

  1. Rafi_C
    Member
    Posted 1 year ago #

    Hi,

    My site is here: http://www.rafi-c.me. FYI There are only 2 posts at this time.

    My posts are reviews and not blogs, so the layout of the site looks better if viewers see only post titles and click "Read".

    Having the most recent post displayed in its entirety doesn't work for the type of content I am posting.

    Thanks in advance!

  2. Bushwick displays the first, most recent, post in its entirety. For all posts after the most recent post, it displays only the post title.

    If instead you'd like all posts to display just an excerpt, you can follow these instructions that I gave someone else:

    http://wordpress.org/support/topic/only-one-blog-post-showing-when-setting-is-put-to-5-6?replies=7#post-5359292

    In addition to following that guide, you'll need to make one more change in your child theme to display excerpts instead of full posts.

    Make a copy of content.php and place it in your child theme. On line 17 of this file in your child theme, change this:

    the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'bushwick' ) );

    to this:

    the_excerpt( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'bushwick' ) );

    That should do the trick. I just tested the changes in a child theme on a test site on my end and it's working.

    Here's the Codex reference about the_excerpt in case you'd like to read up on it:

    http://codex.wordpress.org/Function_Reference/the_excerpt

    Let me know how it goes!

  3. katjavogel
    Member
    Posted 10 months ago #

    Hi Kathhryn,

    I have a similar question, concerning the homepage my blog:
    http://www.kittyarends.nl/ayeartolive

    I would like to have only title + excerpts showing on the homepage, as opposed to one post in its entirety and the rest just excerpts with a 'read me' button.

    I followed your instructions you gave here: http://wordpress.org/support/topic/only-one-blog-post-showing-when-setting-is-put-to-5-6?replies=7#post-5359292

    (including setting up a child theme first)

    and followed up with the instructions you gave in addition to that link in this thread above.

    Something did change, but now, the homepage only shows one post (not the most recent, but only the oldest one) as an excerpt, but without the 'read me' button.

    What can i do in order to have my homepage show at least 5 posts, with only the title+excerpt AND still showing a 'read me' button?

    Thanks for your help!

  4. Kathryn
    Automattic Happiness Engineer
    Posted 10 months ago #

    katjavogel - Hi there, since what you're trying to do is different than both threads you've referenced, could you please start a fresh one? It'll be easier to help you that way. Thanks!

  5. katjavogel
    Member
    Posted 10 months ago #

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.