Forums › Forums › Search & Filter Pro › Displaying taxonomies from filter results on metatags not working
Tagged: metatags
- This topic has 6 replies, 2 voices, and was last updated 5 years, 4 months ago by
Trevor.
Viewing 7 posts - 1 through 7 (of 7 total)
-
Anonymous(Private) February 24, 2020 at 1:20 pm #234721
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
-
AuthorPosts
Viewing 7 posts - 1 through 7 (of 7 total)