Ready to get started?Download WordPress


<!--more--> (7 posts)

  1. Jabbok
    Posted 9 years ago #

    I'm experimenting. I only want the most recent post to show up on the page. The post is extremely long so I've used the <--more--> function. However, with only one post on the page the more function doesn't work.

    Is there a fix for this?

  2. moshu
    Posted 9 years ago #

    It should. I just tested it.

  3. bestfoot
    Posted 9 years ago #

    it doesn't work if you are looking at that post, but it does if you are on the main or category page

    are you sure you weren't on that post?

  4. Kafkaesqui

    Posted 9 years ago #



    Will be fixed with 1.5.1.

  5. Jabbok
    Posted 9 years ago #

    Thanks for the link.

    The patch works. Change line 177 to:

    if ( is_single() ) {

    This is all that was required. The "MORE" function now works with a single post on the default page.

  6. MrJ
    Posted 9 years ago #

    Oh ok, now it's working. I had only one test entry on the page and it wasn't showing the extended entry. I plan on having more than one entry on the page so I don't think it will be a problem...although the 'more' tag should work regardless of how many posts you have don't you think? That was a little frustrating until I found that out...

    Thanks for your help everyone!

  7. moshu
    Posted 9 years ago #

    MrJ, the patch provided at the link above will fix it - as you can see from Jabbok's post.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.