Library code for Posts 2 Posts