07/13/2016 at 3:14 pm
#382707
Keymaster
@ William
You could copy the code within the getFamilyMemberBlock() method to your own custom function and pass in the $entry var from the template when you call it. Something like this:
function custom_family_function( $atts, $entry ) { /copied code/ }
In the template files use it like this:
custom_family_function( $atts, $entry )
Now, within the copied code you would have to change this:
if ( $relations = $this->getFamilyMembers() ) {
to this:
if ( $relations = $entry->getFamilyMembers() ) {
And this:
return $this->echoOrReturn( $atts['return'], $html );
to this:
echo $html;
I think that’s it.
