Skip Navigation

[Resolved] Taxonomy archive page problems.

This support ticket is created 2 years, 7 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.

This topic contains 3 replies, has 2 voices.

Last updated by melodyM 2 years, 7 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#2453381

We have custom post type called Freelancers. We have an archive page set up for this custom post type here:

hidden link

Within this archive, we have a taxonomy displaying called Freelancer Level. This taxonomy has options to show the experience level of each Freelancer.

The code within the archive to display this taxonomy field is here:

[wpv-post-taxonomy type="freelancer-levl"]

On the archive page, this displays the Freelancer Level option for each Freelancer as a clickable link. You can see this on the first result on Freelancers archive page as "Veteran: 10+ yrs". This clickable link leads to another archive page that displays all Freelancers that have that specific Freelancer Level chosen as the option in the taxonomy.

Our problem is the formatting of this taxonomy archive page. It is extremely off. You can see an example of what this is displaying here:

hidden link

This is not good at all. But my problem is I can't figure out how to edit the display of this taxonomy archive page to show the results differently. So I have two questions for you here.

1) Can I make the result shown by the [wpv-post-taxonomy type="freelancer-levl"] code not be a clickable link leading to this poorly formatted archive page? If I can just stop it from being a link, that would be an acceptable solution that would display the Freelancer Level as text only, not as a link leading to this page.

and/or

2) How do I edit what displays on the taxonomy archive page?

Any assistance you can provide would be appreciated.

#2454781

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

According to the documentation below:

https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-post-taxonomy

If you add the display attribute to the shortcode you will be able to control the display of the terms.

The default is link, but you have also options below:

'link' (default) | 'url' | 'name' | 'description' | 'slug' | 'count'

So for your case, I think having the shortcode below should work:

[wpv-post-taxonomy type="freelancer-levl" displya="name"]

The second question is outside of the Toolset control and it is using your theme archive PHP file.

For more information:

https://developer.wordpress.org/themes/template-files-section/taxonomy-templates/

Thanks.

#2455767

I tried the code you suggested and it still is showing them as links.

[wpv-post-taxonomy type="freelancer-levl" display="name"]

hidden link

But now I'm seeing that I should use format="name", not display="name". That worked doing it that way. So we're good.

Understood about the second question being something you don't handle because it's not being generated by Toolset. Just setting these up to not be links should be sufficient for our needs here.

Thanks. Count this one as resolved now.

#2455785

*