Forums

List post excerpts on front-page with static text (7 posts)

  1. Eiland
    Member
    Posted 1 year ago #

    Hi,

    I have a front page with static content, and a dynamic listing of all posts. I made it according to Transycan's instruction.

    However, now I want to display the post excerpts just like they are displayed on a regular category page, so cut off before <!--more-->.

    Unfortunately though, the_content, which automatically detects if my page is a single post or a post collection, decides that my front page is a single page and subsequently dumps the entire post text of ten posts, which is a wee bit too much.

    How can I instruct the_content only to continue until the <--!more--> tag??

  2. Webmeba
    Member
    Posted 1 year ago #

    instead of the_content use the_excerpt

  3. Eiland
    Member
    Posted 1 year ago #

    but that only gives me two hundred characters which I dont like...

  4. Webmeba
    Member
    Posted 1 year ago #

    i think there is a plugin which changes the default number of characters the_excerpt displays.

    EDIT:

    here we go:
    http://www.cybercoder.net/wordpress-excerpt-plugin.html

  5. Eiland
    Member
    Posted 1 year ago #

    great! but actually it wasnt the number of characters, but the arbitrariness of the cut at any number of characters - i always consider my "more" well and the removing of all non-text characters... but im impressed by your plugin knowledge!

  6. Anonymous
    Unregistered
    Posted 1 year ago #

    Eiland - did you find an answer to this? I too want to be able to explicity set the "cut-off" point of the latest post on a static page. I really don't want to have to rely on a pre-defined number of characters or the excerpt field.

    Any ideas?

  7. Eiland
    Member
    Posted 1 year ago #

    no, sorry :(

Topic Closed

This topic has been closed to new replies.

About this Topic