Original: On his father's death (1824) he went in the same capacity to Herzogenbuchsee, and later to Bern (1829).
Simplified: When his father died in 1824, he went to Herzogenbuchsee as a priest. In 1829, he went to Bern.