Could be you have ap isolation on the guest network which would then stop devices communicating with the printer via guest network.

Turn off AP isolation on guest or just move the printer to the LAN SSID