The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 6 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.
Hey Moderators, Should this code still work?
<?php WPV_wpcf_record_post_relationship_belongs(''); ?>
I have this in a few old page templates and these are now breaking. I have commented them out for the moment. What should this be changed to now?
Sorry thought I should add a little more info. I am using Posts2Posts and listing all the artworks in an exhibition. Under each artwork I had the name of the artist listed. This is especially important when multiple artists are in the one exhibition. This was working until I updated to the latest version of Types and Views. Now It breaks output. When I remove:
Hello. Thank you for contacting the Toolset support.
Well - it looks like really old function you are using. I need to see how and where you are using the function: WPV_wpcf_record_post_relationship_belongs('');
Can I have problem URL and temporary access details so I can check your issue further with information what should be your expected output.
Exhibition page: hidden link
==> For above page I checked in the database there is no parent key (_wpcf_belongs_artist_id) exists in postmeta table which stores the parent ID of artists belongs to above post BUT with p2p table I can see artist_to_exhibition relationship is stored.
Please check following screenshot:
=> hidden link
Then I've tried to add following code to file: File: single-exhibition.php -
While that is helpful that does not fix my issue. The issue is that I want to pull the artist for each artwork. Some exhibitions or label runs have multiple artworks by multiple artists. When it calls each artwork, the artwork should have an artist parent under the field _wpcf_belongs_artist_id so how would that be pulled for each artwork. If you reload that same page the artists name should appear underneath each artwork title on the second line.