Skip Navigation

[Resolved] One-to-many relationship not connecting existing posts

This support ticket is created 6 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Tagged: 

This topic contains 7 replies, has 2 voices.

Last updated by ELAN42 6 years, 3 months ago.

Assisted by: Minesh.

Author
Posts
#1149822

Hello,
We have a one-to-many relationship between custom post types:

Pubblicazioni [0 .. 1] << Edizioni [*]

All the existing relationships of this type were previously obtained thanks to an importing process, but now we can't make connections between existing posts.

Inside a post of type Pubblicazioni, we can correctly use "Add new Edizione", but when using "Connect existing Edizioni", the input field says "No results found" for titles of published Edizioni which are exact and existing.

(Both "Add new" and "Connect existing" are greyed out in a post of type Edizioni, but we suppose that's expected for this kind of relationship?)

#1149871

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - could you please share problem URL and access details so I can check this issue further.

I have set the next reply to private which means only you and I have access to it.

#1151234

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Yes - I see the issue on your install.

Could you please tell me how you imported the posts - have you updated Toolset Types plugin and updated to new post-relationship or you imported he posts using CSV file?

#1151238

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I try to check by creating a brand new post for post type "Edizioni" and when I try to connect this brand new post using post-relationship box having button "Connect existing Edizioni" - the newly created post is available to connect.

So - it looks like there is some issue with the import process. Please update me on how you import the posts.

Additionally, I need duplicator package of your site so that I can pass it to our next level support for further debugging.

More info:
=> https://toolset.com/faq/provide-supporters-copy-site/

I have set the next reply to private which means only you and I have access to it.

#1154722

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

So, before we move ahead, you have created one to many relationship using Types plugin (that is a old post type relationship).

We have detailed Doc available as follows which you can study that may help you :
=> https://toolset.com/documentation/user-guides/importing-content-from-csv-with-post-relationships/

I'm not sure as now, if you export the data from where it can take relationship reference. So, I suggest you should first use (old) original data which has relationship reference and then try to follow above doc.

#1157190

We need help to permanently solve this problem ...

Before importing again, we need a way to export current data,
that was edited many times (so we can't import from original source now).
Please help us to do that, at least for data.

Relationships -maybe- can be imported later or re-created with SQL query ?

#1157697

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - Toolset does not offer any Toolset that can help you to export your data/content.

I think all you should do it use either WordPress standard Export functionality OR use any third-party plugin that will help you to export your data/content.

More info:
=> hidden link

Relationships -maybe- can be imported later or re-created with SQL query ?
==> It may be but it needs custom programming that is beyond the scope of our support policy.

So before you proceed my suggestion is to have:
*** Please make a FULL BACKUP of your database and website.***

#1162729

Hello,
I'm sorry but we were a bit misguided about this issue.

After more extensive talk with our client, we realized that the reason why existing posts were not "connectable" is that they were *ALL* already connected in the one-to-many relationship and thus your plugin - as expected - does not show 'em... They become visible when such a post is disconnected, or when you create a new one (which by definition is not yet connected).

As such, we can close this issue and we thank you very much for your support.