Hi,
After updating the Newspaper to version 9.7, “RELATED ARTICLE” and “TOP ARTICLE LIKE” no longer appear on the pages of the records.
At the same time, the buttons “RELATED ARTICLE” and “TOP ARTICLE LIKE” were activated in the settings (see screenshots).
In the loop-single.php new file the codes is now missing:
<?php echo $td_mod_single->related_posts();?>
<?php echo $td_mod_single->get_social_sharing_top();?>
<?php echo $td_mod_single->get_social_sharing_bottom();?>
Hi.
I have apparently found a way to fix this CRITICAL bug. The developers made a terrible programming error in loop-single.php file.
Solution consists in using the extended td_module_single class when create a $td_mod_single, instead the developers used the main class td_module_single_base.
In addition, it is necessary to insert the social and related posts function to loop-single.php
Code for solve extended class bug:
$td_mod_single = new td_module_single($post);
Code for top social icons:
<?php echo $td_mod_single->get_social_sharing_top();?>
Code for bottom social icons:
<?php echo $td_mod_single->get_social_sharing_bottom();?>
Code for related posts:
<?php echo $td_mod_single->related_posts();?>
-
This reply was modified 7 years by
ySV.
Hi,
When you’ll be updating to the Newspaper 9.7 version, you’ll need to activate the tagDiv Composer to keep the Newspaper theme functionality you’ve previously used.
Otherwise, you will have basic WordPress functionality, complying with Envato WordPress Requirements – https://help.author.envato.com/hc/en-us/articles/360000472383-WordPress-Theme-Requirements
Please check the post template from panel or default to other post template -> https://www.screencast.com/t/jwPm1iydc
Thank you!
Hi here there is my solution for use a default template: https://forum.tagdiv.com/topic/errors-in-the-new-version-9-7/#post-289833
-
This reply was modified 7 years by
ySV.
But I like default style. Style 2 is most like default, but it is not the same. Now I must change the style to new look. Why don’t have custom post style like on this picture ? https://www.screencast.com/t/jwPm1iydc