WordPress.org

Ready to get started?Download WordPress

Forums

How do I show an excerpt rather than the whole post? (2 posts)

  1. nats2907
    Member
    Posted 1 year ago #

    Hi, I've looked for this answer on the forums, but haven't yet found one that works.

    Please could somebody help me change the display of my posts, from whole posts to the featured image, title and an excerpt of the post?

    Here are a few details:
    The theme I'm using is 'scrappy'
    I have changed my home page to my 'uncategorized' archives
    All of my posts are checked as 'uncategorized' so as to have them appear on the home page

    I have seen an answer to change this

    < ?php the_content(); ?>

    to

    < ?php the_excerpt(); ?>

    but there are several php files which contain this code, and I'm not sure which one to do it with.

    I would very much appreciate some help with this- thank you.

  2. Tammie
    Member
    Posted 1 year ago #

    If you wanting to change your home page to use the_excerpt you'd be looking at index.php or if your theme has one home.php. This assumes you aren't using a page template for your home page.

Topic Closed

This topic has been closed to new replies.

About this Topic