Add code to each post