I suppose that you have been told to avoid taking backups with TRUNCATE_ONLY, because they break the log chain. Shrinking the log is a totally different operation, that (while potentially negative) has no impact on the log chain.
The two commands are sometimes run together because sometimes users want to rapidly reclaim disk space by throwing away the contents of the log (backup with truncate_only) and shrinking the log.