Wireless printers offer convenience and needs to support Wi-Fi connectivity, mobile printing apps, cloud printing support, ...
Another quick test would be to connect your printer directly to your laptop via a USB cable. If it prints fine, you most likely have a configuration problem with your printer's Wi-Fi connection.
To fix printer connection and printing problems in Windows, check cables and wireless connection, run the Printer Troubleshooter (run HP Print and Scan Doctor for HP printers), update printer ...