WordPress.org

Ready to get started?Download WordPress

Forums

How do I show a summary of posts on the home page and... (10 posts)

  1. Alexis403
    Member
    Posted 3 years ago #

    Right now my full posts are showing on my home page. I would like just a paragraph to show and then show a "read more" button. I tried looking in the Reading section under Settings but didn't find an option for that.

    Also, I italicized a sentence, but it didn't show up as italicized once I posted it. Is there a way to make the italics stick?

    One more thing... How can I change the email that is sent out to people who subscribe to my blog and add a button that leads them back to my blog to comment on the post? I searched on my feedburner site under email subscriptions, but couldn't find an option that allowed me to edit or even see the email that is sent out to subscribers every time I post.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    I would like just a paragraph to show and then show a "read more" button.

    Try using the <!--more--> tag where you want your post summary to end. The read more link will be created automatically.

    Is there a way to make the italics stick?

    That depends upon your theme and what you used to italicise your text.

    How can I change the email that is sent out to people who subscribe to my blog and add a button that leads them back to my blog to comment on the post?

    Try looking for an email plugin that provides the functionality you need.

  3. Alexis403
    Member
    Posted 3 years ago #

    So do I use <!--more--> in the body of every post?

    I used the Italics button in the edit post section.

    Ok, thanks.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    So do I use <!--more--> in the body of every post?

    Yes - if you want to display a customised post summary on certain pages of your site.

    I used the Italics button in the edit post section.

    This could still be over-ridden by your theme's CSS. A link to a page demonstrating the problem might help to confirm that this is the case.

  5. Alexis403
    Member
    Posted 3 years ago #

    I don't want a customized summary on certain pages of my site. I just want every post to only show a paragraph or so on the home page instead of showing the entire post on the home page.

  6. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    see if you can use the_excerpt() instead of the_content() in your index.php (or what template file displays the home page)

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

  7. Alexis403
    Member
    Posted 3 years ago #

    Thank you. That worked perfectly. Could you also direct me to how I can now attache a featured image to the posts on my home page? Now that only a summary is showing, I would also like the picture associated with that post to show with the summary. Thanks.

  8. parfumio
    Member
    Posted 3 years ago #

    I'm interested in this too. Both implementing the excerpt and a featured image in the excerpt (if it is possible).
    Could you please explain for a novice in php and coding how to implement the excerpt. I didn't quite understand the instructions from http://codex.wordpress.org/Function_Reference/the_excerpt

    Thanks

  9. Alexis403
    Member
    Posted 3 years ago #

    Hi parfumio,

    I am a novice too. I just went to filezilla, where I upload all my files for my site. I went to public_html, then wp-content, then themes, I selected my current theme and it's sub folder, and then found the index.php file. I clicked on view, which opened it in notepad. I then looked for the code that had the_content() in it. When I found it, I simply replaced the words the_content with the_excerpt and I left the info in the parentheses alone. It worked for me. I also followed these instructions to make it say "Read More" instead of just leaving the elipses:

    Make the "read more" link to the post
    Place this in a theme's functions.php to make the "read more" link to the post

    function new_excerpt_more($post) {
    return 'ID) . '">' . 'Read the Rest...' . '';
    }
    add_filter('excerpt_more', 'new_excerpt_more');

    The fumctions.php file is in the same place as the index.php file. And make sure to click save everytime you edit a file. If you also use filezilla, it will ask you to reupload the edited file, say yes. Hope this helps.

    I still need to know how to add a feature image to the excerpt.

  10. Rev. Voodoo
    Volunteer Moderator
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic