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:
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.