Hi Debbie,
If he is experiencing pica (eating things he shouldn’t), it could be related to the underlying infection. A potential diet change could help with consultation with your veterinarian. For dogs that do eat their stool, there are products out there in which you mix a powder into their food and it’s supposed to make it taste bad (as if they need to be convinced!). This may help deter him from eating it. If he is off leash, you could try walking him strictly on leash so you could scoop the poop faster or if off leash, work on his recall so he comes to you as soon as you call when he is done and gives you a chance to pick it up. Lastly, get the fecal re-checked and consider some additional blood tests for some intestinal or pancreatic digestive conditions.
I hope this helps!
Dr. Ryan Llera