How do I connect to a WiFi printer
Answer to the question
Your question would be more quickly and directly answered if you posted it on the support forum of your Linux distribution. The Linux distribution I use and recommend is Linux Lite. If you're also using an Debian/Ubuntu based Linux distribution like Linux Lite, the Printer instructions seen here might be some good generic help for you.
If not, then go to your distribution's forum and/or the website of the manufacturer of your printer.
P.S. When you post on your Linux distribution's forum, you should mention the make and model number of your printer. It helps those who want to help you.