Modified to use post metadata rather than external table for object/page mapping. Also modified to not generate empty posts when an invalid object id is given