10/08/2014 at 2:02 pm
#306400
Keymaster
@ Fabrice
Hmmm, funny, sort of I was testing with the exact code and didn’t get an error (I should have). use this:
// Grab an instance of the Connections object.
$instance = Connections_Directory();
$terms_r = $instance->term->getTermRelationships( $entry->getId() );
$terms = cnTerm::get( 'category', array( 'child_of' => 73 ) );
foreach ( $terms as $term ) {
if ( ! in_array( $term->term_id, $terms_r ) ) continue;
echo $term->name;
}
If I have not asked and you have a moment, I would truly appreciate a review as they really do make a difference. Many thanks in advance!
http://wordpress.org/support/view/plugin-reviews/connections