the ID of the custom post is now stored in the widget instance and is queried on the frontend