Skip Navigation

[Resolved] the_content() dont work if Type Views (3.2.1) is activate in WordPress (5.4.1)

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

Problem: I would like to use the_content() in PHP to display post content, but when Views is active, the_content() is empty.

Solution: Usually this means a blank Content Template has been applied to the post. Edit the post in wp-admin and check the Content Template settings. Remove any template that may be applied to the post and try the_content() again.

This support ticket is created 5 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by João Paulo 5 years ago.

Assisted by: Christian Cox.

Author
Posts
#1656989
example.png

I am trying to:
Update WordPress and Plugins to lastest version (WP 5.4)(Types Views 3.2.1).
But, if update this, all the-content() in my site dont show words.

Link to a page where the issue can be seen:
On dev workspace (not in production workspace)
The error persist in my theme and others thems!
No updated for example -> hidden link

I expected to see:
All the_content() working

Instead, I got:
Any word

#1657121

Hi, Views hooks into the_content() to apply Content Templates to posts and design the post content area. Is it possible these posts have a Content Template applied in wp-admin? If a blank Content Template is applied to the post, you would probably see the behavior you have described for the_content(). You can find the Content Template setting in the post editor screen. If a Content Template is applied to this post, please remove the Content Template from the post - choose "No template" instead. Then test the_content() again, and let me know if the problem is resolved.

#1657323

My issue is resolved now. Thank you!