working posts with exception of showing unpublished posts