I have used the custom query method and setup_postdata as described above. This works fine for standard post properties (title, permalink etc), but the post metadata is empty. Does anyone know how I can get the post metadata?
I think the problems comes from the $post_meta_cache being empty, but I can’t work out how to fill it.