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,
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/
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,
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/