Skip Navigation

[Resolved] Worpress get_the_content display none

This support ticket is created 5 years, 3 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
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 3 replies, has 2 voices.

Last updated by Christian Cox 5 years, 3 months ago.

Assisted by: Christian Cox.

Author
Posts
#1256095

Hi,

I try to use toolset with a theme Newspapper, i show that the theme use the following code to retreive the post content
:
/* ----------------------------------------------------------------------------
Prepare the content
*/
$content = get_the_content(__td('Continue', TD_THEME_NAME));
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]>', $content);

But $content is already empty, can you help me ?

Regards,

#1256393

Hi, unfortunately there are several compatibility issues with the Newspaper theme, and our attempts to collaborate with their developers have been ignored. If you'd like to see more integration with this theme, I suggest reaching out to their developers to let them know we are trying to collaborate and would appreciate their attention. With that being said, you may find the informaton in these other tickets helpful:
https://toolset.com/forums/topic/content-templates-theme-function-detect/
https://toolset.com/forums/topic/cpt-content-not-showing-in-newspaper-theme/#post-531281
https://toolset.com/forums/topic/side-bar-not-working-well-when-enable-it-to-custom-archive/
https://toolset.com/forums/topic/layout-pd/

#1256399

Hi,

Thanks for your response, but i don't understand why when i execute the following function, on a template i can't retrieve the content.

I test on nineteen templates, the_content works good and display toolset content, but get_the_content + apply_filter display none.

Have you an explanation about this ?

Regards,

#1257573

Great question, but I'm not really the best source for information about technical aspects of the Newspaper theme. I'm not trained on it, and I have only limited experience with it. Maybe their forum has some answers? https://forum.tagdiv.com/forum/newspaper/

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