William Shadrack Shallenberger (November 24, 1839 – April 15, 1914) was a Republican member of the U.S. House of Representatives from Pennsylvania.
He was mustered out of the service in October 1864 and again engaged in mercantile pursuits in Rochester, Pennsylvania.
Shallenberger was elected as a Republican to the Forty-fifth, Forty-sixth, and Forty-seventh Congresses.
He served as chairman of the United States House Committee on Public Buildings and Grounds during the Forty-seventh Congress.
He was appointed by President William McKinley as Second Assistant Postmaster General and served from 1897 to 1907.