Thanks James, That was a massive help.
I ended up using a slight variation on the code which worked.
<?php
$term = get_field('staff_member');
if( $term ): ?>
<h2><?php echo $term->name; ?></h2>
<?php endif; ?>
Cheers,
Dan
Hi,
Sorry to bring up an old thread but I am using this code and it works well for standard text fields but I am trying to change the title to a Taxonomy field. The problem is that it changes my title to the ID and not the taxonomy name. Any ideas on how I can get it to display the name?
Thanks James.
That sounds like a possible work around.
The problem I then have is with filtering.
Here’s a link to what i’ve created so far (it’s rough):
http://incadesigndev.com/ncstaff/
I’m using the Search & Filter plugin.
Cheers,
Dan