fix render issue, hide unpublished posts