Fixed it! There was nothign wrong with my code! The issue was with WPML.
Because the imported posts didn't contain the meta data for the WPML language, they weren't displayed. Disabling then re-enabling WPML fixed the issue!
Fixed it! There was nothign wrong with my code! The issue was with WPML.
Because the imported posts didn't contain the meta data for the WPML language, they weren't displayed. Disabling then re-enabling WPML fixed the issue!