Bug?: About the more tag (3 posts)

  1. ELAN42.com
    Posted 7 years ago #


    I can't figure out how to show the excerpt of a post.

    I mean, if I use the the_excerpt() function, I get some text (the first 55 words) but how do I get the content of a post UNTIL the "more" marker?

  2. ELAN42.com
    Posted 7 years ago #

    I still can't understand why the output of the_excerpt() don't stops at the "more" tag but endures 55 words.

    What is the purpose of this?
    How do I resolve the problem?

  3. ELAN42.com
    Posted 7 years ago #

    Can't find a solution:

    the_excerpt() takes out also the text after the more tag.

    the_content('',TRUE,'') strips the <!--more--> tag in a strange way, so in the end the_contents puts out:

    <span id="more-334"/>
    <p>after the more tag</p>

    At least if WordPress did not strip the more tag with that span, I could make a sub_str (all - content) to get the REAL excerpt.

    Like that it's useless...

    Whan can I do? It's impossible that no-one found a solution to this...

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.