How to limit search to only posts in WordPress without plugin