added wpposts helper for generic query loop
Merge pull request #2 from mykebates/master

added wpposts helper for generic query loop