Library code for Posts 2 Posts (no admin UI)