WASHINGTON — By the time President Trump arrived in El Paso on Wednesday, on the second leg of a trip to meet with people affected by mass shootings in two cities, he was frustrated that his attacks on his political adversaries had resulted in more coverage than the cheery reception he received at a hospital in Dayton, Ohio, the first stop on his trip. So he screamed at his aides to begin producing proof that in El Paso people were happy to see him.

One of those people was Tito Anchondo, who had lost his brother and sister-in-law, Andre and Jordan Anchondo, when a gunman opened fire on a Walmart last Saturday and killed 22 people. Mr. Anchondo traveled to the University Medical Center of El Paso on Wednesday to meet Mr. Trump, and as the president stood by and flashed a thumbs-up during a White House photo opportunity, the first lady, Melania Trump, cradled Mr. Anchondo’s 2-month-old nephew, whose parents had both been gunned down.

By Friday, the photo had been widely disseminated after it became clear that the infant had lost his parents in a mass shooting, and had been brought back to the hospital after being discharged earlier in the week. In El Paso, Mr. Anchondo said that the attention surrounding his visit with the president had only brought more pain to his family.

“It’s just been really hectic,” Mr. Anchondo said during a brief interview at the family’s auto body shop, adding that he and his family had received hounding hate calls after the photograph circulated, and that people were harassing him on Facebook.