Support for ASE relationship field on par with ACF relationship
B
Bowo
Hi,
I've finished integrating custom fields solution in ASE (Admin and Site Enhancements - https://www.wpase.com) with Breakdance. I've been able to integrate all field types and the repeater field into various Breakdance return types (string, url, image, video).
However, there does not seem to be a way to add the relationship field the way ACF relationship is added to the "Template | Global Content >> Post Loop Builder >> Query >> Custom >> Query Builder >> Source" options, which currently has Post Types, Related and ACF Relationship.
Please consider implementing that so it is easy to create custom design for related post types defined in the relationship field. e.g. showing related actors cards/data in a movie CPT template.
~Bowo
Developer of ASE.
Philipp Zwinge
Hi Bowo,
I was in contact with Breakdance support today.
Here is a workaround as an query array for the transition:
$list_ids = array();
if (function_exists('get_cf_related_to')) {
$list_ids = get_cf_related_to('YOURRELATIONSHIPFIELD');
}
return ['post__in' => $list_ids,
'post_type'=>'any'];
The query array must be specified in the Post Loop Builder under Query --›Array.
This at least provides a transitional solution.
Best regards
B
Bowo
Philipp Zwinge this is great. Thanks for sharing this! I'll add to ASE documentation.
B
Bowo
Documentation has been added at https://www.wpase.com/documentation/custom-field-types/#page-builders