I am creating custom code to add
schema.org markups to a page template.
I wanted to echo the tags and categories as plain text to use them in the
about markup fields.
I can display the tags with a code like this:
echo '<meta itemprop="keywords" content="'; echo the_tags(); echo'"/>';
but since the output is an array of link, the Google online markup test tool does not recognize the words. Also, the words have a prefix:
My question is: is there a way to output the tags and categories of a post as plain text so I can use it inside the Schema markups that I am creating? thanks