Question: do producers get songwriting credits?
Answer: If the producer didn't have a hand in writing the song, but just helped build a track to the song, the producer should not get any songwriting/publishing. However, if the artist and producer build a song from scratch and basically co-write the song together, then, yes, the producer gets co-writing credit and ownership.