Skip Navigation

[Resolved] Sometimes terms are duplicated in my taxonomy views

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

Problem:

In my nested taxonomy views, the MemberPress plugin conducts the problem:
some taxonomy terms are printed several times.

Solution:

You can edit the taxonomy views, add attribute suppress_filters="true" into the content template, for example:

[wpv-post-body view_template="loop-item-in-rubriques-level2" suppress_filters="true"]

Relevant Documentation:

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

This support ticket is created 3 years 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 6 replies, has 2 voices.

Last updated by dominiqueM-3 3 years ago.

Assisted by: Luo Yang.

Author
Posts
#1972879
Capture d’écran 2021-03-02 223418.png
Capture d’écran 2021-03-02 223502.png

Hello,

Tell us what you are trying to do?
I am trying to create a hierarchical list of terms from a taxonomy.

Is there any documentation that you are following?
I was inspired by the methods offered here: https://toolset.com/forums/topic/taxonomy-view-with-a-taxonomy-view-for-a-child/ and here: https://toolset.com/forums/topic/display-custom-taxonomies-2/

What is the link to your site?
For the moment, I'm working on a local PC

The above mentioned methods are working well except that for some taxonomy terms (not the majority) are printed several times.
How could I get rid of or fix this problem?

Thank you

#1973225

Hello,

The problem you mentioned above is abnormal, please check these:
1) In case it is a compatibility problem, please deactivate all other plugins, and switch to WordPress default theme 2021, and test again
2) Edit terms of "taxonomy", make sure there isn't any duplicated terms.
3) If the problem still persists, please provide database dump file(ZIP file) of your website, you can put the package files in your own google drive disk, share the link only, also point out the problem page URL and view URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#1974269
duplicated-terms.JPG

I can install your duplicator package in my localhost, and tried these:
1) Activate plugin "MemberPress Basic"
2) Test the URL you mentioned above in front-end, I don't see any duplicated terms, see my screenshot, is there any steps missing?
Please provide detail steps to reproduce the same problem, thanks

#1974309

Hi Luo,

In the 'Rubriques' page, could you please check under the parent term called 'Intégrales'?

I've made a video capture to show how I can reproduce the issue: hidden link

Best regards

#1974337

Thanks for the details, please try these:
Edit view "Rubriques-Level2":
hidden link

in section "Éditeur de boucle", replace the content template shortcode from:
[wpv-post-body view_template="loop-item-in-rubriques-level2"]

With:
[wpv-post-body view_template="loop-item-in-rubriques-level2" suppress_filters="true"]

It will remove filters from other third part plugins, then test again, to avoid other unexpected results, you can also add same attribute suppress_filters="true" into other level views.

More help:
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-post-body
If suppress_filters=’true’, all third party (non WordPress) filters hooked into the_content filter will be removed

#1974377

Luo,

It is working.
Thank you.

Best regards

#1974381

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.