I received the multiple entry visa from Canadian embassy. Unfortunately they put the visa expiration date equal to passport expiration date. Since then my passport has expired. I have received a new passport which now has a new passport number. In this situation do you guys think I can travel to Canada if I take both the passports? I guess I am confused since my visa has expired, and the link below says that you can travel to Canada if you have a valid visa on an expired passport.
You need a valid visa to travel to Canada. It cannot be expired.
Several years ago Canada did issue visas which could have expiration dates after the expiration of the passport, but they have not done this in some time. All recent visas expire at the same time as the passport. So, when you renew your passport you must also apply for a new visa for Canada.