Home › Toolset Professional Support › [Resolved] Hide a product category
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/Karachi (GMT+05:00)
Tagged: Toolset Blocks, Views plugin
This topic contains 1 reply, has 2 voices.
Last updated by Waqar 9 months, 2 weeks ago.
Assisted by: Waqar.
Hi,
Is there a way to hide a specific category in the [wpv-post-taxonomy type="product_cat"] shortcode?
Thx
Hi,
The 'wpv-post-taxonomy' shortcode doesn't include a built-in option to exclude a certain term, but here is a workaround that can be used.
Suppose, you have taxonomy 'shop-type' and you're using the shortcode to show the term archive links like this:
[wpv-post-taxonomy type="shop-type" separator=", " format="link" show="name" order="asc"]
You can wrap the shortcode inside a special div with a class 'taxonomy-container':
<div class="taxonomy-container">[wpv-post-taxonomy type="shop-type" separator=", " format="link" show="name" order="asc"]</div>
And use the custom CSS code to hide the link with a specific URL, among these term links, e.g.
div.taxonomy-container a[href="<em><u>hidden link</u></em>"] { display:none; }
As a result, the term whose URL will be covered in the CSS code, won't show in this shortcode's output.
I hope this helps and please let me know if you need further assistance.
regards,
Waqar
Ahah! Well done Waqar! It worked like a charm!
Many thx for your quick and efficient help!