Skip Navigation

[Resolved] Views output is not displaying correctly

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

Problem:

I created a view to be inserted into a layout. The view goes through a loop to display info. Everything is set up correctly. However, on the front end, it doesn't display what's instructed in the view_template: [wpv-post-body]

Solution:

There might be some compatibility problems in your website, I suggest you try this:

Edit the post view you mentioned above, in section "Loop Editor", find the shortcode of content template:

[wpv-post-body view_template="XXXX" ...]

add attribute suppress_filters="true" in above shortcode, like this:

[wpv-post-body view_template="XXXX" ... suppress_filters="true"]

Relevant Documentation:

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

This support ticket is created 5 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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

Last updated by horngO 5 years, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#1200765

I created a view to be inserted into a layout. The view goes through a loop to display info. Everything is set up correctly. However, on the front end, it doesn't display what's instructed in the view_template.

#1200796

Hello,

There might be some compatibility problems in your website, I suggest you try this:
Edit the post view you mentioned above, in section "Loop Editor", find the shortcode of content template:
[wpv-post-body view_template="XXXX" ...]

add attribute suppress_filters="true" in above shortcode, like this:
[wpv-post-body view_template="XXXX" ... suppress_filters="true"]

More help:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-body

If suppress_filters=’true’, all third party (non WordPress) filters hooked into the_content filter will be removed, when retrieving the post body.

#1202746

My issue is resolved now. Thank you!