08/29/2016 at 8:26 pm
#388151
Participant
I see that this post doesn’t reference the closed topic that I was re-opening on… Here is the code snippet that I was referring to:
add_filter( ‘cn_output_email_addresses’, ‘cn_contact_email_contact_link’, 11, 4 );
function cn_contact_email_contact_link( $block, $addresses, $entry, $atts ) {
if ( $addresses ) {
if ( ! cnQuery::getVar( 'cn-entry-slug' ) ) {
$name = $entry->getName( array( 'format' => '%first%' ) );
$permalink = $entry->getPermalink() . '#cnct-email-' . $entry->getSlug();
$row = 'Contact Us';
$block = '' . PHP_EOL . $row . PHP_EOL . '';
}
}
return $block;
}
