[Resolved] How to prepare your sites for the new post relationships, coming in Types 2.3
This thread is resolved. Here is a description of the problem and solution.
Problem:
Types 3.0 will bring new enhanced post relationships, how will it affect existing sites?
Solution:
Existing sites will continue to work as-is, though a wizard can be used to update existing relationships to the new relationship format, which will also be able to handle many cases where custom code is used.
Clients should ideally test the new versions on a duplicate of their site, and in any case *must* make sure they have a current backup before upgrading.
Hi,
I am a bit scared about the upgrade to the new Post Relationships API
One of my sites has a complex array of post relationships and I'm not sure whether they will be affected by this change. I have not written any custom PHP so does that mean it will be a safe transition?
Could someone please login and check my site to advise me? I'll send a login on request.
If you are not using any custom code then the migration wizard should handle your post relationships automatically.
There will be a big fat health warning advising you to make sure you have a backup before running the wizard (which you don't have to run if you are not making any changes to your site, it will continue to work as before).
If you have particularly complex relationships I would suggest you make a duplicate of your site on a test server, install the betas and run the relationship migration wizard, then confirm that your site still works correctly, including when adding new data. (I could do that for you, but you know your site and how it is expected to work.)
If you try that and find any problems then please let me know and I can then take a copy of your site to pass to the developers.
Okay so on my test site, I deleted Types and Views, then installed beta types and beta views.
the front end output looks okay.
Problem:
For each main post - I log into the post and link related Services, related Glossary terms and related resources.
Previously they were listed by a title, but now there is only 'related-service 3804' etc
In your screenshot for the live version, what field is "Service Providers" and to what does it belong? It's a custom field of your intermediate related service post type, would that be right?
It looks like the post titles are the same in each, but you have lost the field you wanted to display.
Thanks for that. I have compared the two side-by-side. I have a meeting with the devs in the meeting and I will run it past them to get their feedback, and let you know what they say.
I spoke with the developers who said this is an unintended omission that will be fixed in the release candidate for the final version, so when we go from beta to stable you will see the same as before.
Thanks for testing and bringing it to our attention.