How to get the post teaser to be different from first part of actual blog post (5 posts)

  1. briancollins
    Posted 3 years ago #

    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

  2. esmi
    Forum Moderator
    Posted 3 years ago #

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

  3. briancollins
    Posted 3 years ago #

    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 ?

  4. Michael
    Part-Time Forum Moderator
    Posted 3 years ago #

    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()'


    what theme are you using?

  5. briancollins
    Posted 3 years ago #

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


    <?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.

Topic Closed

This topic has been closed to new replies.

About this Topic