Test trailer first. On the trailer (7 pin plug), use a flasher, fuse, or a piece of wire to jumper between the pins on each side of the notch out. This connects the trailer battery power to your running lights. Do a google search for "running lights in campground", to see drawings and decsriptions. If they light up, the problem is in the truck.
Check owners manual for the truck. Find and check the fuse for trailer running lights. It's probably in a fuse box under the hood.
Could also be, a loose connection in the harness or plug on the truck.
We had a poster just a few weeks ago, who had similar problem. An RV dealer had installed his 7 pin plug. He took the truck back to have them check the plug. They told him it was good. It really wasn't.