Hi Trevor,
I’m coming back to this issue because now I’m trying to add the taxonomy on the metatags using this piece of code that you shared me.
It works good on <body>
<h1 class="hcourses"><a href="https://example.com/course/"><?php echo substr($sf_current_query->get_field_string("_sft_activitiesCourse"), 10); ?> courses</a></h1>
But it doesn’t work when I put it inside the <head> of the page.
<meta name="description" content="Worldwide <?php echo substr($sf_current_query->get_field_string("_sft_activitiesCourse"), 10); ?> courses"/>
Any suggestions?
Appreciate your time