• Resolved quirksmode

    (@quirksmode)


    I have tried different plug ins, Post teaser worked well, but you can only set one length for the excerpts across the whole site. Not sure if you can pass variables manually, which would be ace.

    the_excerpt_reloaded seemed like my ideal solution, but I can’t for the love of me get it to wrap <p> tags around the main text. I am guessing thats because it’s pulling the content straight from the post and not interpreting it properly:-(

    Any other options or ideas?

Viewing 7 replies - 1 through 7 (of 7 total)
  • So what you’re saying is that, depending on how you’re viewing your posts (by archive, by category or on the home page) you want the <–more–> tag to essentially be in different places? Like maybe show the first paragraph on the home page but if you bring up the archives only show the first line?

    Is that correct?

    minute44,
    No, he is not saying that at all!
    Excerpts and the “more” are two very different things, even if the end result seems very similar… Read about them.

    quirksmode,
    you can make the_excerpt_reloaded to display whatever html tag you need!

    Oh… what do exerpts do then? I thought what <–more–> did was display an exerpt.

    [Edit] Minute was just a few seconds quicker than me.
    I use the_excerpt in the index.php and archive.php, so all posts are cut off. With the more tag you can cut a post that is called on with get_post (or something).

    But is Moshu’s answer also the answer to my question?

    1. The “more” tag can be inserted by the user wherever they want; and it will display a ‘read more’ link.
    2. the excerpt is a template tag used in contrast with the_content in the template files; it displays X amount of words/characters with a […] at the end. X = defined in WP core files.

    Gangleri, use the_excerpt_reloaded plugin.

    I get ya!! Well, that’s good to know ?? I always wondered how to make that happen.

    Thread Starter quirksmode

    (@quirksmode)

    Thanks Moshu, had another crack at the_excerpt_reloaded and got it working.

    Here is what I used to display mine in case anyone is interested:

    <?php the_excerpt_reloaded(55, '<p>', 'excerpt', True, '[more...]', FALSE, 1); ?>

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘the_excerpt:Need to have different length excerpts for diff pages,can it be done’ is closed to new replies.