• Resolved sdcom

    (@sdcom)


    Hi,

    I have a problem, see the situation:

    I have Post Type called Products and CPT called Components.
    In Products, I created: Post 01 and Post 02
    In Components, I created: Component 01

    Inside Post 01 and 02 there is a relationship field where I made the relationship with component 01. On the frontend, both post 01 and post 02 make the relationship correctly.

    But in CPT Component 01, it only relates to Post 01 and Post 02 does not appear.

    Can you help me please?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author John Huebner

    (@hube2)

    Are you using a relationship fields or post object fields?

    If it’s a relationship field what is there a max number of posts set for it?

    If it’s a post object field is “Select Multiple Values” set to “Yes”

    This plugin will only create relationships up to the maximum allowed by the field’s settings.

    Thread Starter sdcom

    (@sdcom)

    Hi John, thank you to fast reply.

    I using relationship field and max number of posts is 9999.
    Any idea?

    Thanks

    • This reply was modified 3 years, 1 month ago by sdcom.
    Plugin Author John Huebner

    (@hube2)

    Do the fields on both post type have identical field names?

    Plugin Author John Huebner

    (@hube2)

    also, what code are you using to display these relationships on the front end?

    If the correct posts appear in the relationshipd fields in the admins of all posts then this is all that this plugin does.

    There shouldn’t be any reason except for those I’ve noted that it should not work.

    There is another condition that could cause this.

    If you have both sites of the relationship open in the admin and you attempt to updated them both then they will be updated with the current values in the fields. If Post A is saved with a relationship to post B then you much reload post B in the admin to see that relationship. Updating without doing this will cause the relatiohsip to post A to be removed.

    Thread Starter sdcom

    (@sdcom)

    Hi John,

    This is cause “Updating without doing this will cause the relatiohsip to post A to be removed.”
    Problem solved.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Relationship not working’ is closed to new replies.