WordPress.org

Forums

Twenty Eleven
automatic excerpts with post thumbnail (2 posts)

  1. z3r0c00l
    Member
    Posted 4 years ago #

    I'm customizing the 2011 theme and am wanting to add automatic excerpts to the home page (index.php)

    I'm using the "the_excerpt()" function but it pulls the excerpt only when an excerpt exists. I'd like to automatically create excerpts in this theme and not use manual. I addition I'm wanting to style the excerpt with the featured image/ thumbnail.

    any ideas on the best way to go about this with this particular theme?

    Thanks,

    Patrick

  2. vishalkhialani
    Member
    Posted 4 years ago #

    Hi,

    If you want to have an image then use in the loop.php place it with your excerpt()

    <?php the_post_thumbnail( $size, $attr ); ?>

    enable it at function.php

    add_theme_support( 'post-thumbnails' );

    Well As for as the manual excerpt feature is considered I think it will only take it if you provide one. I am guessing you already know this. Sorry can't help you there.

    cheers,
    vishal

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic