You can go with the poop idea, which works amazingly well, or you can build them a designated "digging area". Set up a sandbox type of things, fill it with dirt or sand or whatever and bury some interesting stuff in it. When you catch them digging, redirect them over to the box. and then fill the yard holes with poop anyway.