Support » Fixing WordPress » Excerpts with images on main page – Finding Themes that support it

  • Resolved hobkirk

    (@hobkirk)


    Version 2.9.2 on GoDaddy host

    I like a front page to my blog that only lists the “excerpts.” I prefer that the excerpts include pictures. I would like it if the excerpt ended with a link like [see more] so that the reader doesn’t need to know they must click on the title of the post.

    I have tried several themes and only one (Choco) puts excerpts on the front page. The others (Thematic, Hybrid, WordPress Classic 1.5, and WordPress Default 1.6) all put the entire post on the front page.

    Questions:
    1) Is it possible to easily change the above themes so they support excerpts on the front page?
    2) If not, is there a way to search for themes that do support excerpts on the front page?
    3) If a theme does support excerpts on the first page, does it automatically support embedded pictures?
    4) Are there any PlugIns I should consider to solve these preferences?

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • 1. Yes – simply edit the theme’s index.php template file to use <?php the_excerpt();?> instead of <?php the_content();?>

    2. Try searching on “post thumbnails”.

    3. Not even sure that you mean by this…

    4. Not that I am aware of. I’d argue that this is a theme issue and that you’re better off choosing the right theme. There are plenty of themes in the Theme Directory that use excerpts on the front page.

    Eg: http://wordpress.org/extend/themes/zenlite

    Thread Starter hobkirk

    (@hobkirk)

    Thank you. I get answers 2 and 4.

    1) I tried your solution but did something wrong. I activated WordPress Classic 1.5 and modified the relevant (I think) div code in /WoodLoon/Blog/wp-content/themes/classic/index.php to:
    ———–
    <div <?php post_class() ?> id=”post-<?php the_ID(); ?>”>
    <h3 class=”storytitle”>” rel=”bookmark”><?php the_title(); ?></h3>
    <div class=”meta”><?php _e(“Filed under:”); ?> <?php the_category(‘,’) ?> — <?php the_tags(__(‘Tags: ‘), ‘, ‘, ‘ — ‘); ?> <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(__(‘Edit This’)); ?></div>

    <div class=”storycontent”>
    <?php the_excerpt(__(‘(click to read more…)’)); ?>
    </div>

    <div class=”feedback”>
    <?php wp_link_pages(); ?>
    <?php comments_popup_link(__(‘Comments (0)’), __(‘Comments (1)’), __(‘Comments (%)’)); ?>
    </div>

    </div>
    ——–
    The front page worked, showing just the excerpts (including the pictures that had been embedded in the first 160 characters).
    1A) I was surprized that the “…” at the end of the excerpt did not get replaced with “click to read more…”
    1B) But when I clicked on the heading the new page only showed the excerpt, not the full post.

    3) By “support embedded pictures” I mean –
    If I use a theme with “php the_excerpt” and there is a picture included in the first 160 characters (whatever the actual “excerpt” portion is), will that picture be automatically included in the excerpt shown on the main page? E.g., My Blog Based on what happened when I tried WP Classic I think the answer is YES, embedded pictures in the first 160 characters will show on the front page.

    Use <?php the_excerpt(); ?>. The tag does not accept any parameters. If you want a “more” link you’ll need to manually add it to the template file – eg:

    <p class="more-link"><a href="<?php the_permalink();?>"><?php _e('Continue reading');?> <?php the_title();?></a></p>

    3) If you want images in your excerpts, you will need to create a manual excerpt that incorporates images using the Excerpt box on the Edit Post page. The automatic excerpt does not contain any images or text formatting.

    Where would I put this in my code? I don’t see a the_content to be replaced:

    <?php get_header(); ?>
    <div id=”postentry”>

    <?php if (have_posts()) : ?>
    <?php include (TEMPLATEPATH . ‘/headline.php’); ?>
    <?php while (have_posts()) : the_post(); ?>

    Thanks

    I even tried the homepage_excerpts plugin to no avail. I’s using WordPress 3.0 if that makes a difference.
    Thanks

    Oops. It would help if I added the URL
    http://www.theamazingagingmind.com

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Excerpts with images on main page – Finding Themes that support it’ is closed to new replies.