@ Tim
That check of code is from the class.retrieve.php
file in this folder:
../wp-content/plugins/connections/includes/
That has nothing to do with the templates and not in any of the instructions. I really do not suggest altering that file, bad things can happen.
You would only copy both the card.php
and card-single.php
files from the source template. I can’t tell you the exact path because I can’t remember which template and which version you’re using.
Regardless of the template you would put your label in front of the code for the item you’re adding the label to. As an example the code for the title would be $entry->getTitleBlock();
to add a label you would add 'Title: .
before it so you would have somehting like: 'Title: ' . $entry->getTitleBlock();
There may or may not be code in front of or after $entry->getTitleBlock();
, that does not matter you would add 'Title: .
directly before $entry->getTitleBlock();
.
The code blocks for org and dept are:
$entry->getOrgUnitBlock()
;
… darn, I forgot, the org and dept are output using a single function so it is not easily done to add labels.
You can use the echo $entry->getOrganization()
and echo $entry->getDepartment()
functions instead of $entry->getOrgUnitBlock()
but you’ll lose the hCard microdata markup and the ability to have the org and dept as links. Neither of which may matter to you.
Hope that helps!