I want to allow the custom post type "Event" which is created by the plugin Events Calendar Pro to have a parent of custom post type "Product" which is created by WooCommerce.
I can see that if either of the post were created by Toolset Types then this would be simple top do in the admin through the "Post Types" interface. However, as neither of these are Toolset CPTs, no interface exists in order for me to achieve this.
Can you please assist? I am quite happy to declare the relationship in functions.php if there is a way to do it that way, although the ideal would be that there is a way to do this through the admin.
This is perfectly possible in the RC-2 release of Toolset.
You would head to the Toolset > Relationships and just create a new relationship with the desired Post Types.
I suggest to try this out on a staging site first, to see if it satisfies your requirements for the project.
Thank you. I've been quite excited about the new developments, however, we're under a lot of pressure to get this live this week and so I would be very scared to not be using a production release of the plugin.
Do you have a launch date for this functionality in the core?
Otherwise, are you aware of any workarounds in the meantime?
There are no workarounds in the meantime, as this would require some Custom Code and we do not allow to control other post types with Toolset unless you follow these steps:
https://toolset.com/faq/how-do-i-convert-existing-custom-types-and-fields-to-types-control/
I would not suggest that rather I would suggest to wait for the Production Release and make some tests first to be sure you can achieve the goal.
If you need to develop the Relationships, it is unlikely that within one week your project can go live.
You would still need to design all the templates, test the process, eventually add features.
Creating the relationships is probably one of the first steps.
After, you probably want to display that data, for which you need to create Views and templates.
I think, unless you have all this already finalized, you could build the site on RC versions on a staging site and update to Stable Releases as soon they are out - and ship out the project.
I have no fix ETA for a release, but we are in Quality Control phase, which is the last of a development cycle.
Thank you Beda,
That is all great advice which I have passed onto my client so that they may decide how we procede.
All the best, and have a wonderful day.
Regards,
Peter