changing-up the method of previewing posts as WordPress method didn't work.