Forums

[resolved] Multiple "More" breaks, one for front page, one for second (5 posts)

  1. RevOnline
    Member
    Posted 5 years ago #

    Is this possible?

    I want to have a very short preview of a post on the front page. The front page is split between 4 subjects, so just the five or so most recent posts of each subject are on there.

    I then link from those to the parent category, eg. games which goes on to include Game Reviews, Game Articles etc. which can be 1000 words, easily. So it'd be ideal to have a "more" after the first couple of lines for the front page, then another after the first 300 words for the second page. Is that possible?

    Or would it be possible to use PHP to limit the words of a blog being posted so it stops after 20 or 300, whatever a counter is set to?

    I think this is going to be a case of rethinking, but any solutions or thoughts would be appreciated.

  2. Kafkaesqui
    Moderator
    Posted 5 years ago #

    The <!--nextpage--> quicktag (in conjunction with the link_pages() template tag) is probably what you're looking for. Note this is for paginating posts or Pages.

  3. moshu
    Member
    Posted 5 years ago #

    Well, one way to try to make it work:
    - use the_content with the "more" tag on the index file
    - use the_excerpt on category templates - and either alter the WP function to display the desired # of words or, even better, use the excerpt_reloaded plugin to define the number of words

    References:
    http://codex.wordpress.org/Category_Templates
    http://codex.wordpress.org/Template_Tags/the_excerpt
    http://codex.wordpress.org/Template_Tags/the_content
    http://guff.szub.net/2005/02/26/the-excerpt-reloaded/

  4. moshu
    Member
    Posted 5 years ago #

    [Probably I overcomplicated it... see Kaf's solution]

  5. RevOnline
    Member
    Posted 5 years ago #

    Thanks guys. I'll read through it all, but I think I might just go for the simpler solution.

    Greatly appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic