Viewing 9 replies - 1 through 9 (of 9 total)
  • I just went to your blog and I see the top entry as dated 21 September.
    Or have I missed the point ?
    🙂

    Thread Starter Jack

    (@moxie)

    Well, I guess I wasn’t too clear about it, but now the page shows the last 5 posts, while there are some 15 posts in that month, so I want to show alle the posts in this month. I could set the number of posts to 50 or something like that, but that would/could mean that some posts from august are also on that page.
    I just want the same thing as when you do index.page?m=200409 🙂

    That cannot be done without tweaking in the index file. You can easily set to display all posts within the last 30 days but not all posts within the current month. Besides, with how you describe what you want to do then on October 1st before you make a post, wouldn’t your front page be blank?

    Thread Starter Jack

    (@moxie)

    How then can I ‘tweak’ the index file? It was a standard thing in MT to start with the current month and list all posts in that month. And I must say the most logical thing in a blog to show on the indexpage.
    I’m not a php-specialist myself, but what makes this so difficult?

    There is nothing “logical” about showing the current month only on the front page, just your preference. There is also nothing particularly difficult about doing it if you know a little php, it is just not how WP is designed “out of the box.” It’s way past my bedtime but maybe tomorrow I’ll take a stab at what it will take, if no one else has.

    Sorry, I’ve been sick (drip-drip). In the loop you want something like:
    <?php if (date(m) == the_time(m,0)) { ?>
    and at the end
    <?php } ?>
    At least I think that would work.

    Thread Starter Jack

    (@moxie)

    Hey Beel, still dripping? Seen “The Day after Tomorrow” too many times?
    You have to help me a little with you suggestion. Like … what should I do with it?
    I put it right within the loop and it seems to be working. It showed only one post for october, which is wright, otherwise it should have shown five posts no matter which month. So that’s fine.
    But when I disabled that one post (by putting it back into Draft), nothing was shown, while I want it to show the latest full month that actually does have posts. So if I’m too busy with other things to post for three months, it should show for instance August (the latest one with posts).

    Thread Starter Jack

    (@moxie)

    But it’s not a big deal Beel, don’t think too hard 🙂 It would be nice to know how it could be done, but all months are just one click away… 🙂

    Just saw your post as I was headed out the door (but my head is too crammed with crap to think anyway). Yeah, what I posted will only show the posts of the current month so if there aren’t any – too bad so sad 😉
    Think on it a bit and I bet you can figure out how to add what I suggested in the other thread – do a search for the alternating post colors and you will come up with a counter you can use to test for a post and if there are 0 posts for the month, default to 5 most recent posts or the previous month’s posts.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘recent month as startpage/indexpage’ is closed to new replies.