Tell us what you are trying to do?
Creating a breadcrumb with schema included (microdata)
Previously, the breadcrumbs were set up like this:
<a href="/">Home</a> >> [wpv-post-taxonomy type="pertinent_category"] >> [wpv-post-taxonomy type="pertinent_tags"]
That works great with respect to the pertinent tags, which can have multiple tags/links.
But now that I'm trying to include schema/microdata in the links, the set up below does not separate the multiple tags correctly.
There must be a way to include the schema I need, while keeping each tag a seperate link?
<li itemprop="itemListElement" itemscope itemtype="<em><u>hidden link</u></em>">
<a itemprop="item" href="[wpv-post-taxonomy type="pertinent_tags" format="url"]">
<span itemprop="name">[wpv-post-taxonomy type="pertinent_tags" format="name"]</span></a><meta itemprop="position" content="3" /></li>
It is being rendered like this:
<li itemprop="itemListElement" itemscope="" itemtype="<em><u>hidden link</u></em>">
<a itemprop="item" href="<em><u>hidden link</u></em>, <em><u>hidden link</u></em>">
<span itemprop="name">Crisis, Daily Economy</span></a><meta itemprop="position" content="3"></li>
What I need is this:
<li itemprop="itemListElement" itemscope="" itemtype="<em><u>hidden link</u></em>">
<a itemprop="item" href="<em><u>hidden link</u></em>">
<span itemprop="name">Crisis, Daily Economy</span></a><meta itemprop="position" content="3"> ,
<a itemprop="item" href="<em><u>hidden link</u></em>">
<span itemprop="name">Daily Economy</span></a><meta itemprop="position" content="3">
</li>
What is the link to your site?
the staging site is not public
Hello,
I assume we are talking about this:
In a single post, you are going to display the post tags in a specific HTML schema/microdata.
If it is, you can add a taxonomy view:
- Query terms of taxonomy "Tags"
- Filter by:
Taxonomy is set by the page where this View is inserted
- In view's loop, display the items in your specific HTML schema/microdata.
And use above taxonomy view to display the result instead of shortcode [wpv-post-taxonomy]
Not really.
It's the breadcrumb I'm building with breadcrumb specific schema.
It's the trail from the article > back to the tag > back to the category > and finally back to the home page.
I've already built the code above and just need to figure out how to separate multiple tags. It works perfectly when there's only one tag. It does not when there is more than one (as shown above)
I understand now. I had to dig through more documentation to fully understand what you were saying, but I'm on the right track now.
Thanks.