האם ניתן ליצור קבוצות של פוסטים עבור פוסטים רבים של WordPress? אולי SQL?

If the Wordpress command line tools allow you to iterate the posts and save them in a way that triggers the Discourse plugin to create the topics as you want, that’s certainly what I would do. It’s probably not very efficient but for a one-time job, any overhead will cost less time than trying to find a “better” solution.