Support » Plugin: Posts 2 Posts » Posts 2 Taxonomy?

  • Resolved jtwg

    (@jtwg)


    Instead of registering a connection from one post type to another, I’d like to register a connection from a post type to a taxonomy, allowing me to choose connected items from multiple post types that belong to the same taxonomy. Is there a way to do this with the plugin as it is today?

    http://wordpress.org/extend/plugins/posts-to-posts/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author scribu

    (@scribu)

    multiple post types that belong to the same taxonomy

    Since you didn’t say multiple posts that belong to a taxonomy term, I assume you mean all the post types for which a particular taxonomy is registered.

    Yes, you can do that:

    p2p_register_connection_type( array(
      'from' => 'YOUR_POST_TYPE',
      'to' => get_taxonomy( 'YOUR_TAXONOMY' )->object_type
    ) );
    Thread Starter jtwg

    (@jtwg)

    Awesome. I’ll be trying this out today.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Posts 2 Taxonomy?’ is closed to new replies.