This. With kids you surely have a party/get together, and relatives, friends, neighbours etc can pop in and say hi, and drop off the gifts etc during those 2 hours. Send out the invites for 4-6pm or so. Or if it's at the weekend, say 1-3pm... Get everyone there at the same time.
I know what you mean though @Hardyperennials about having people coming in and out all day, and having to entertain people on your birthday/your child's birthday. When it's my birthday (and DH is the same,) I tend to say we have something planned/we're away for several days, and ask people to pop around 2 days or so before, or 1-2 days after. (Sometimes we actually are doing something.)
It's my birthday, I want to spend it how I choose to, and not sit there waiting for people to turn up, not knowing when they're coming, and having to sit there entertaining them, chatting, making them coffee and tea, providing food, and smiling and nodding.
My brother and his wife used to be terrible for this. They would come around at a time of their choosing, and stay for about 4 hours, (with their 2 boisterous, and out of control sons!) all eating me out of house and home and drinking tea and coffee, and bring me a regifted Dove shower gel set and a box of maltesers. (They live abroad now so this no longer happens thankfully!)
It's MY birthday, I will spend it how I choose, and if this means not seeing people, and just spending it with DH, and going for a long walk, and a carvery at lunchtime, then coming home and watching a film in the afternoon, that is what I will do. I do not want to be entertaining others on my birthday.
If that makes me sound awkward/precious/hard work, then so be it. I'm too old to give a shit what people think of me.
.