posts-widget: new logic to the query builder for post formats