Use the data attribute to detect post id