Get posts of a month

  • Unknown's avatar

    Hello,

    I’m programming my own newsletter and need to get all the posts of the last month. I’ll run my script on the first day of every month by using cronjob and at that time the script should check if there are posts that were published in the last month.
    The same procedure for the modified posts.

    At the end, the user should get an Email which contains all the new posts and all the posts that were updated in the previous month. Logically both types should be echoed by different functions because I’m separating them.

    I hope, that everything’s clear, if not feel free to ask for more explanations.
    Thanks for all the ideas.

  • The topic ‘Get posts of a month’ is closed to new replies.