WordPress.org

Ready to get started?Download WordPress

Forums

Preference Lite
[resolved] Summary Post (3 posts)

  1. hope4autism
    Member
    Posted 1 year ago #

    I'm trying to change my home posts to excerpts only. I don't see the loop.php folder at all and the index.php isn't showing "the_content" for me to change to "the_excerpt".

    Please help.

  2. paulwpxp
    Font hero
    Posted 1 year ago #

    This is the index.php of the current version of this theme
    http://themes.svn.wordpress.org/preference-lite/1.6.5/index.php

    in that file, notice the loop here

    <?php while ( have_posts() ) : the_post(); ?>
    	<?php get_template_part( 'content', get_post_format() ); ?>
    <?php endwhile; ?>

    that get_template_part() will look for the content-{postformat}.php and use it when it matches the post, and defaults to just content.php

    Here are the content-{postformat}.php files in that theme

    content-aside.php
    content-image.php
    content-none.php
    content-page.php
    content-quote.php
    content-single.php
    content-status.php
    content.php

    You have to go over them and change the_content(), if found, to the_excerpt(), if you don't use post format, just change the content.php one.

    Also, all the modifications must be done in child theme only.
    http://codex.wordpress.org/Child_Themes

  3. StyledThemes
    Member
    Theme Author

    Posted 1 year ago #

    Hi hope4autism...I wanted to follow up with Paulapxp's reply and to see if you were able to get the excerpts in place?

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic