WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. briancollins
    Member
    Posted 2 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 2 years ago #

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

  3. briancollins
    Member
    Posted 2 years ago #

    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 ?

  4. alchymyth
    The Sweeper & Moderator
    Posted 2 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()'

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

    what theme are you using?

  5. briancollins
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic