Display Plain Text List of Terms

[ad_1]

Plugin Author
99w

(@ninetyninew)

Hi,

This extension is primarily used to to display a linked list of terms from a product attribute, such as all brand links from a brands attribute.

However, depending on your attributes configuration it may be possible to achieve this.

The list won’t be linked if you are using the shortcode with archive links enabled e.g.

[wcpas_product_attributes attribute="your-attribute" archive_links="1" hide_empty="0"]

And where the attribute in Products > Attributes > Hover over the attribute and click edit, and have archives disabled.

The configuration above would stop links appearing as there are no archive pages to link to.

Then you could change the styling of the list to display like a singular line using some custom CSS like this:

.wcpas-product-attributes {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wcpas-product-attributes li {
	display: inline;
}

.wcpas-product-attributes li:after {
    content: ', ';
}

.wcpas-product-attributes li:last-of-type:after {
    content: '';
}

This is of course dependent on whether you require archive pages to be enabled for those, however if you do I don’t see why you wouldn’t link through to them.

We’ll investigate adding the ability to display as a singular line linked/non-linked in for potential inclusion in future releases.

Thank you,

  • This reply was modified 7 minutes ago by 99w.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer