As was mentioned on your other thread, hay is the most important part of their diet. It provides them with vitamin c and fibre, keeps their guts going and helps keep their teeth worn down. I would consider stopping the carrot and spinach. Carrots are high in sugar and spinach is high in calcium. You don’t want that in their diet regularly. His poops are few and unformed because he’s not eating enough hay.
If possible (depending on availability and cost), could you try different types of hay? Although I’m assuming you have already done this.
Was he living with other guinea pigs before you got him? What was he like at his previous place of residence - did he eat veg normally?
One you could try is coriander, though I assume that’s also been suggested already. A couple of sprigs. Sometimes it’s also about persistence. Slice the veg and put it in the cage. If it’s still there later then you remove it. Keep doing the same every day. I’d start with the coriander then try bell pepper. As he’s not been eating veg you need to try and introduce them slowly.
The other is do you have somewhere you could get some fox and dog pee free grass? Though it would have to be a significant amount to keep up with him. Does he like alone or with other piggies? Does he ever try and snatch the food out of their mouths?
Hope he starts munching on grass or hay soon!