rewrite post and page using widgets