Create generate_posts.php