09/16/2014 at 10:30 am
#304209
Keymaster
@ Susan
Oops …
I forgot the echo
that’s needed because the function returns the data. The code would be:
<?php echo $entry->getMeta( array( 'key' => 'specialization', 'single' => TRUE ) ); ?>
What you could do for the label is this:
$spec = $entry->getMeta( array( 'key' => 'specialization', 'single' => TRUE ) );
if ( $spec ) echo "Label: $spec";
re: It seems unlikely anyone would want their field results in a section titled “Custom Fields”.
True … but since they can be anything to any user I have to use something as a default.
You can use these filters to control output:
cn_entry_output_content_block
cn_entry_output_content_block_container
cn_entry_output_meta_key
cn_entry_output_meta_container
These can be found in this file:
class.entry-data.php
You’ll have to refer to the code and play with them to figure them out but they should provide everything you need to complete control the output without having to edit the core Connections files.
Hope that helps!