Read post_id from data attribute