Did Frederick William IV of Prussia have children?

No, Frederick William IV and his wife Elizabeth of Bavaria had no children.