WordPress.org

Ready to get started?Download WordPress

Forums

excerpts on index page (4 posts)

  1. bhastert
    Member
    Posted 1 year ago #

    I'm trying to get my index page, which I'm using as my home page, to display excerpts of my posts as the default. I read the thing about replacing "the_content" with "the_excerpt" but my index.php doesn't have the_content anywhere in it, so I can't replace it. I'm awfully confused.

    I'm not good with code, but I can follow directions. My website is http://www.bridentitypolitics.com. Thank you!

  2. Tara
    Member
    Posted 1 year ago #

    my index.php doesn't have the_content anywhere in it,

    Check in other theme templates also.

  3. bhastert
    Member
    Posted 1 year ago #

    I'm not using a theme. Or at least I'm using the super basic wordpress 2011 theme.

  4. bhastert
    Member
    Posted 1 year ago #

    Here is some of the code from the index page... is this the right ballpark? Am I missing something?

    <div id="primary">
    <div id="content" role="main">

    <?php if ( have_posts() ) : ?>

    <?php twentyeleven_content_nav( 'nav-above' ); ?>

    <?php /* Start the Loop */ ?>
    <?php while ( have_posts() ) : the_post(); ?>

    <?php get_template_part( 'content', get_post_format() ); ?>

    <?php endwhile; ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags