get query var for main loop if exist
remove typo