Title: Programtically create connection
Last modified: August 22, 2016

---

# Programtically create connection

 *  [Lee Cloete](https://wordpress.org/support/users/leemustard/)
 * (@leemustard)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/programtically-create-connection/)
 * Hey Guys, Very cool plugin, juts one question,
 * I need some direction with regards to your plugin.
 * How, Would i programmatically create a connection between posts or post types(
   obviously with some parameters so it knows which posts to assign and “join”)
 * I’ve checked on the documentation and there is some direction, But i really don’t
   know how to apply it. [Here](https://github.com/scribu/wp-posts-to-posts/wiki/Creating-connections-programmatically)
 * So basically, when you create a post & its assigned to certain taxonomy, The 
   post will automatically be be grouped with the connection type (which you define
   in functions file)
 * Is this possible?
 * _Bests_
    _Lee_
 * [https://wordpress.org/plugins/posts-to-posts/](https://wordpress.org/plugins/posts-to-posts/)

The topic ‘Programtically create connection’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/posts-to-posts_7a8e9d.svg)
 * [Posts 2 Posts](https://wordpress.org/plugins/posts-to-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/posts-to-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/posts-to-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/posts-to-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/posts-to-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/posts-to-posts/reviews/)

## Tags

 * [join](https://wordpress.org/support/topic-tag/join/)
 * [post-to-post](https://wordpress.org/support/topic-tag/post-to-post/)

 * 0 replies
 * 1 participant
 * Last reply from: [Lee Cloete](https://wordpress.org/support/users/leemustard/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/programtically-create-connection/)
 * Status: not resolved