After you have adopted a POKEMON, make a house for your new pet, and also click "See Inside" and drag your pet into the backpack (The little tab thing at the bottom of the coding area).
THX TO PANSYCAT2