How to display taxonomy terms as meta itemprop
-
Hi,
I’m trying to create divs in which the itemprop is generated from the terms of my custom taxonomy “plateforme”.
I have tried a lot of things to do it, but i’m a beginner, that’s why I need some help.
The code I expect to achieve is something like this :
<?php $metadatas = the_terms( $post->ID, 'plateforme' ); echo ' <meta itemprop="operatingSystem" content=" ' .$metadatas. ' " />'; ?>
By the way, this code doesn’t work, but it gives you an idea of what I want to achieve.
Any help will be really appreciated.
Regards.
[please do not bump]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to display taxonomy terms as meta itemprop’ is closed to new replies.