Not ever having heard you play, I can only offer some general stuff.
When we stand in front of a group and have to give a class, lead a brainstorming session, make a product presentation, we first of all need a common language with our "audience", we need command of the subject and finally, we need routine to make a fluent delivery. If any of the pieces are missing, the event will not go well.
When in a band, we have a couple of additional factors. We communicate best with instruments that are not using the same space that the trumpet has - that means range, tone and style. That space should also have separate "licks"/patterns to best distinguish between the chorus events.
Playing with a guitar can be a very daunting experience as they have many traits that can collide even with a very experienced trumpet player. Their technique of moving between chords can strongly interfere with our chorus patterns. If they like to play arpeggiated chords, we can have a hard time hearing the form. Piano players are generally more experienced at direct accompaniment. They tend to lay down a cloud that we can ride.
The only solution is dedicated time with the guitar player. Both have something to learn!