Support » Theme: Twenty Eleven » automatic excerpts with post thumbnail

  • 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

Viewing 1 replies (of 1 total)
  • 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

Viewing 1 replies (of 1 total)
  • The topic ‘automatic excerpts with post thumbnail’ is closed to new replies.