Support » Themes and Templates » How to get the post teaser to be different from first part of actual blog post

  • Hi all,
    I was just wondering, if I make a post and this appears in the homepage as well as the category section, is there a way to have a different ‘teaser’ so the text and image are different in the category + homepage preview, so that they are not simple the first section before the more tag ?

    Is there a way to make these 2 sections have different content ?
    Apologies for my bad terminology, I am very new.

    Many Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • esmi

    (@esmi)

    Forum Moderator

    Use the optional Excerpt box in each Add New/Edit Post page for your custom teaser.

    Hi,
    Thanks for the post. That’s what I was doing, but for some reason it does not work. Do I need to add anything to the post input box or the excerpt box like any tags or anything in order to make it work ?

    Michael

    (@alchymyth)

    Forum Moderator

    if the theme is using the ‘read more’ in connection with ‘the_content()’ to limit the preview part of the post, then writing a custom excerpt won’t work.

    in which case, try to replace ‘the_content()’ in the loop of index.php of your theme with ‘the_excerpt()’

    http://codex.wordpress.org/Function_Reference/the_excerpt

    what theme are you using?

    Hi, Thanks for your help.
    In my ‘Main Index Template’ I changed the bit of the code
    <?php the_content(‘Read more…’); ?>

    to

    <?php the_excerpt(‘Read more…’); ?>

    but still no joy 🙁

    Ahh it’s OK I guess, WP just doesn’t like me 🙂
    I’m using Blue Vector WordPress by qualitywordpress.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to get the post teaser to be different from first part of actual blog post’ is closed to new replies.