Skip Navigation

[Resolved] content layout editor gets hung, gutenberg crashes with toolset types

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

Problem:

In a nested views:
- Parent taxonomy view, query terms of taxonomy "Cohorts"

- Child post view, query "Companies" posts, filter by taxonomy "Cohorts" and "Category".

I need to group the results by taxonomy "Cohorts"

Solution:

There isn't such kind of built-in feature within Toolset Views plugin, but you can try the custom codes solution here:

https://toolset.com/forums/topic/content-layout-editor-gets-hung-gutenberg-crashes-with-toolset-types/page/2/#post-1723397

Relevant Documentation:

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

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 22 replies, has 2 voices.

Last updated by soniyaA 3 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#1723397

Since you did not point out the problem page url and view URLs, so I have to create pages and views, and setup a demo in your website:
1) parent taxonomy view:
hidden link
in view's loop, display below child post view

2) Child post view:
hidden link
a) in section "Query Filter", Filter by:
Select posts with taxonomy:
Company Categories slug in one of those set by the URL parameter wpv-company-category
eg. hidden link
AND
Cohorts set by the parent Taxonomy View
b) in section "Custom Search Settings", display below two taxonomy filter shortcodes + submit button:

<div class="form-group">
	<label for="wpv-company-category"></label>
	[wpv-control-post-taxonomy taxonomy="company-category" type="select" default_label="All" url_param="wpv-company-category"]
</div>
<div class="form-group">
	<label for="wpv-cohort"></label>
	[wpv-control taxonomy="cohort" type="select" default_label="All" url_param="wpv-cohort"]
</div>
[wpv-filter-submit output="bootstrap" class="btn-secondary"]

c) In view's loop display post information

3) In Toolset custom codes snippet, add an item, with below codes:
hidden link
with below codes

4) Create a new page, display search form of child post view + parent taxonomy view:
hidden link

Test it in front-end:
hidden link

It works fine, and it is only a demo for your reference, you will need to customize it to what you want.

#1723665

Hello. I cannot browse to page 2 of this tickef. Can you pls email me?

#1724271

Hello. I am able to view the page from laptop - but it doesn't work on mobile view. Just FYI. I am going through this now.

Luo, thank you so much for sharing this. Could you please let me know where can I find the documentation that shows all the parameters that we can include with shortcodes? Also where can I find documentation on the custom code? Looking at the code, it seems like we had to add the filter because from view we could only use the taxonomy filter.

In the past, I know I have seen documentation on all parameters being passed to shortcodes like wpv-view (url-param, etc.) However I can no longer find it. I can only see some documentation for the shortcodes themselves but not the parameters that they take.

#1725277

I assume we are talking about this document:
https://toolset.com/documentation/user-guides/views/passing-arguments-to-views/
section "Accessing the arguments"

Above custom codes is based on wpv_filter_taxonomy_query, see document:
https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_taxonomy_query
And shortcode [wpv-control]:
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-control

#1728001

Hi Luo. I went through the documentation... but I could not figure out why the code is NOT working after we changed the type to checkboxes instead of select.

The child layout is NOT showing up. Can you please help?

One more question we had was that with thissolution, the reset button does not work, so I guess we might have to create a custom button that clears all the filters. Is that correct?

Is there a way to include a checkbox for ALL as an option just like we use ALL for select?

#1729137

Thanks for the details, I am checking it in your website, will update here if find anything.

#1729181

Your website is abnormal, it can not output the child post view at all, please check the PHP debug logs in your website:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/

Since you did not provide the FTP access, I can not do more debug in your website, if you need more assistance for it, please provide the FTP access, you can also provide a full copy of your website,
https://toolset.com/faq/provide-supporters-copy-site/

private message box enabled again.

#1742305

Thanks. We decided to NOT group by Cohorts due to the multiple issues faced with the layouts. Thanks for going above and beyond in trying to provide us a solution.

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