Skip Navigation

[Resolved] View doesn’t render

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

Problem:

When a Content Template (CT) is added to a Taxonomy View and this View is inserted outside the Loop in an archive, the CT from the first View is not used anymore.

Solution:

It is a known issue:

https://wp-types.com/errata/content-template-is-not-rendered-if-added-outside-the-archive-loop-of-a-view/

urrently, you can try these:
Edit the Taxonomy View, in section "Loop Editor", remove the content template shortcode, and display the taxonomy link shortcode directly.

Relevant Documentation:

https://wp-types.com/errata/content-template-is-not-rendered-if-added-outside-the-archive-loop-of-a-view/

This support ticket is created 4 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 11 replies, has 2 voices.

Last updated by Luo Yang 3 years, 4 months ago.

Assisted by: Luo Yang.

Author
Posts
#1283751
Captura de pantalla 2019-07-04 a las 9.05.16.png
Captura de pantalla 2019-07-04 a las 9.02.58.png
Captura de pantalla 2019-07-04 a las 9.02.52.png

Hi there.

With the last update I have an issue in my website.

The views doesn't render right but when it's inserted in a cell with layouts. It seems that there is an error.

The url of the shop is hidden link

If you click in any cat you'll go to the Layout for Categoria Archives. I attach the screenshot of the layout. In the right side i have a cell with the view. Now the view in in text cell, but before the view was in view cell. any of them isn't working now. -> hidden link

If I insert the same view in a page, without layouts template, the view renders right. -> hidden link

I think that there is a problem with layouts plugin when there is 2 cells.

#1283811

Hello,

I have checked the URL you mentioned above, I can see view has rendered the HTML tags, for example:

<ul class="wpv-loop js-wpv-loop">
...
		<li></li>
...
</ul>

The problem is shortcodes insider HTML "li" tag do not rendered.

It seems to be a compatibility problem, please try these:
1) Edit the the view (ID: 1362),
in section "Loop Editor", find the shortcodes within HTML li tag.

2) If it is content template shortcode [wpv-post-body ...], please try to add suppress_filters="true" attribute in it, for example:
[wpv-post-body view_template="my-ct" suppress_filters="true"]
And test again.

The attribute suppress_filters="true" will remove all third party (non WordPress) filters hooked into the_content filter.

See our document:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-body

If the problem persists, please try below normal debug steps:
1) In case it is a compatibility problem, please deactivate all other plugins, and switch to wordpress default theme 2019, deactivate all custom PHP/JS code snippets, and test again

2) Also check if there is any PHP/JS error in your website:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/

3) If the problem still persists, provide database dump file(ZIP file) of your website, 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/

#1284283

Another thing. Before the last update of views... the render was right. After the update began the problems

#1284421

Thanks for the details, I am downloading the files, will update here if there is any found.

#1284533

I can duplicate the same problem in my localhost with your database dump file, but I have tried the same settings in a fresh wordpress installation + the latest version of Toolset plugins + Woocommerce plugin, it works fine.

Do you have any clue to reproduce the problem in a fresh wordpress installation? otherwise, it will be take as an exception.

And currently, you can try these:
Edit the view "Vista cats prods lat", in section "Loop Editor", remove the content template shortcode, and display the taxonomy link shortcode directly:
[wpv-taxonomy-link]

#1284543

Hi again Luo. Thanks for your help.

If I do a fresh install... I should insert all the information on the web again, and recreate the theme. -> this isn't a good solution

🙁

If I use [wpv-taxonomy-link] instead of the content template... works fine.

#1284705

I am able to duplicate the same problem, in order to reproduce the problem, it is required to put a WordPress archive cell in the layout.

I am escalating this thread.

And currently, please try the workaround as I mentioned above:
https://toolset.com/forums/topic/view-doesnt-render/?view=all#post-1283811

#1284717

Escalated, will update here if there is any news.

#1292655

My issue is resolved now. Thank you!

#1645739

Here is the feedback from our developers, it is fixed in next version of Toolset Views plugin 3.3, which is under QA status, will be released soon

#1647407

Thanks Luo!

#1862125

Hello,

This is fixed in latest version of Toolset Views plugin 3.3.3, you can download it here:
https://toolset.com/account/downloads/#legacy-plugins

Please test it and feedback if the problem is fixed, thanks

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