add post type and post id to article elements