Sauter la navigation

[Résolu] View with search filter in custom taxonomy pages

This support ticket is created Il y a 5 années et 1 mois. 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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Ce sujet contient 3 réponses, a 2 voix.

Dernière mise à jour par Beda Il y a 5 années et 1 mois.

Assisté par: Beda.

Auteur
Publications
#1396493

I am trying to: I have created a View for a Custom Post Type and I have assigned it to CPT and relative Custom Taxonomy pages using New Divi 4.0 Theme Builder. The filter has a Text Search Form, a select box for Taxonomy and a select box for CPT relationship.

Link to a page where the issue can be seen:
CPT page: lien caché
Custom Taxonomy page: lien caché

I expected to see: in the custom taxonomy pages, I expected to see the select box taxonomy filter preselected by the taxonomy page.

Instead, I got: the same as the CPT page.

#1396625

A view will always output the same if inserted on different contents unless of course a filter is set to display certain content depending on the current page, but that would only affect the Loop (output) and not the filter.

So, summarising, if you insert a view with 2 filters on a Custom Post and an Archive, it will output the exact same Filters on both places.

If you want to create Filters for Archives, you should use the Toolset > WordPress Archives and create a new Archive, then add filters.
But that will not work within or with Divi's Theme Builder, which is not supported by Toolset.

What you could try is to create two different Views, and in each insert the exact filters you want.
Then, insert those into your Theme Builder Templates.

But keep in mind, Toolset does not integrate with that Builder, as seen here https://toolset.com/documentation/recommended-themes/toolset-divi-integration/
You might run into limitations at some points, and currently, also you'll face a BUG (which we are reporting to Divi next week for a fix): https://toolset.com/forums/topic/edit-post-form-appears-in-header-footer-and-main-content/

Please let me know if this clarifies things 🙂

#1396843

If you want to create Filters for Archives, you should use the Toolset > WordPress Archives and create a new Archive, then add filters.
I have do that and it works fine, but, sometimes in the frontend code toolset add some <br> and <p> code that in the backend there aren't.

#1398331

Good.

Related to unwanted Break and Paragraphs, this can be due to a lot of different things.
It might be your theme or this BUG:
https://toolset.com/errata/paragraph-tag-is-stripped-in-wysiwyg-loop-items-and-page-builders-generated-content/
It is rather the other way around that it strips some tags, but it may also add some.

Another thing you can check is the "automatic paragraphs" in the Views Loop Item Content Template (Or archives loop item template), which can be enabled or disabled so to allow Views to add P's at every linebreak or not.

If that all helps nothing, please open a new ticket with the new issue, so we can look with the adequate focus into the problem, since it is not related to the initially mentioned goal.