I have a CPT "Curriculum" (not built with Types) that has a relationship with WooCommerce Products. The relationship is defined with the ACF Relationship field. I need to show the "Post Link + Post Title" for the related Curriculum from a Toolset View. I'm very close and I can pull up the associated Curriculum IDs via a Toolset View but I cannot get it to display "Post Link + Post Title" for the associated Curriculum Posts.
In the attached graphic "Material-List.png" you can see the view. The column that says "Associated Units/Lessons" is accurately pulling in the IDs for the associated Curriculum CPTs. These are sometimes more than one.
The Product List Loop Item is as follows and [wpv-post-field name='associated_posts'] is the field capturing the associated post IDs, but it isn't looping to get each one in the array (or comma-separated values like "397,402"). I'm not sure how or if I can create such an inner loop to capture the "Post Link + Post Title":
Is there a way to loop through the values in [wpv-post-field name='associated_posts'] and output them as Post Link + Title for those IDS even though we're already in another loop for the Product post?
Thanks!
Is there any documentation that you are following?
Hello. Thank you for contacting the Toolset support.
Well - there is no native way that the your post relationship IDs of ACF relationship converted into the post title + link BUT there is an alternate solution.
You need to create the custom shortcode and pass the field holding the post relationship IDs and within the shortcode, you will get these related IDs and based on ID find the post information using WP_Query.
You will need the same kind of code as given with following ACF Doc link:
More info: hidden link
If you still do not get how to do it, Please send me problem URL and temporary access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.
Minesh is having a holiday today. I checked your WP login but it is not working, can you please double check username / password? I have enabled private box for your next reply.