When your HP printer printing only black pages, these issues occur due to ink cartridge problems. Check some status of ink cartridge:
1. Press the Ink icon from the control panel and check the ink level.
2. If ink level is ok then check you are using genuine HP ink cartridges.
3. If you are using genuine HP ink cartridges and ink level ok, then issue arises due to dry ink.
The ink of cartridge will dry if you will not use the printer for one week. Always remember these requirements of the printer for best quality printing. For more assistance, contact HP printer technical support team by dialing toll-free number 1-800-296-1402.