How to get a search result with sitelinks in google?

I’m pretty sure that all you need to do is set up categories and start having discussions.