Tagged: 

Viewing 6 reply threads
  • Author
    Posts
    • #1060
      preston
      Member

      I was able to relate my Home and Location post types using the Piklist post-relate field type.


      <?php
      /*
      Title: Locations
      Post Type: home
      Order: 10
      Priority: default
      Context: side
      Collapse: false
      */

      // Let's show the Meta Box
      piklist('field', array(
      'type' => 'post-relate'
      ,'scope' => 'location'
      ,'template' => 'field'
      ));

      piklist('shared/code-locater', array(
      'location' => __FILE__
      ,'type' => 'Meta Box'
      ));

      However, this seems to only create a one-way relationship.

      Adding a second meta-box file with the post types flipped shows the correct options, but the connections checked in one post do not persist to the other.

      Are true two-way connections possible with post-relate? I was hoping Piklist would replace the Posts 2 Posts plugin for this purpose.

    • #1077
      preston
      Member

      Can anyone clarify how post-relate works?

      If two-way relationships are possible, I’d love to know how.

      If not, is this a feature request that anyone else is looking for?

    • #1079
      Steve
      Keymaster

      We’re still finalizing this. But yes, two-way relationships will be supported.

    • #1202
      sanderschat
      Member

      Hi Steve,

      i need your advise on this subject: two-way relationships

      Will this be available in the near-near future?
      or do you advice to use the ‘post2post’ plugin (or other approaches) for this?

      thanks!

    • #1203
      Steve
      Keymaster

      If you need it in the next month or so, go with Posts2Posts. However, be aware that our approach will be different, and I don’t believe compatible with Posts2Posts.

    • #7793
      ccarey75
      Participant

      Sorry to resurrect on an old thread from 2013 but was this ever implemented? The docs are missing for this field. I had a look through the demo code and couldn’t see mention of it.

    • #7812
      intrepidrealist
      Participant

      I second this. I don’t see anything in the demos regarding related posts…

Viewing 6 reply threads
  • You must be logged in to reply to this topic.