Do you have a light in your coop? Turn on the light and they will gravitate towards the coop.
I never had a problem with this, but you might also try feeding them right before they should be going in to roost....like 5 pm or so.
Mine free range, so I feed in the evening. I feel this encourages more foraging during the day and still gives them a good meal before bed, just in case they didn't forage enough to eat.
What I notice is that the older hens will eat first and then head straight for the roosts in order to get their favorite places. Then the younger birds get a chance to eat without getting pecked and they generally follow the older gals to the roosts.