Skip Navigation

[Resolved] linking multiple items in wpv-post-taxonomy shortcode

This thread is resolved. Here is a description of the problem and solution.

Problem:

Display the post tags in a specific HTML schema.

Solution:

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]

Relevant Documentation:

This support ticket is created 4 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by louE 4 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#1614221

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

#1614939

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]

#1615195

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)

#1615317

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.