demo for view and query postmeta function