adding sync_all_posts function
Fixed bugs: rake generate will run sync funtion