update pagenavi function for none posts condation