After updating to Newspaper 9.7.1 I’ve noticed the following errors on my AMP category pages (note I am using the AMP for WP plugin to generate these pages):
wp_booster error:
td_api_base::mark_used_on_page : a component with the ID: td_category_top_posts_style_12 is not set.
/home/grizzl21/capital10x.com/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
Display backtrace
wp_booster error:
td_api_base::get_key : a component with the ID: td_category_top_posts_style_12 Key: posts_shown_in_the_loop is not set.
/home/grizzl21/capital10x.com/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
Display backtrace
All other pages (AMP and non-AMP) appear fine. Any help you could provide in identifying the cause of these errors would be appreciated.
Thank You
Hi,
Before the last update, i was able to find the mobile single post template to edit it. I have to insert a shortcode in PHP code at the end of the posts on mobile theme (to add share buttons from social warfare plugin).
Where can i find it ? I’m juste able to edit loop-single/php template but my shortcode display only on dekstop version, not on mobile theme.
Before this update i was able to edit the header file of mobile theme, now i can’t find it too, can you help me ?
Thank you
Im taking a look at the tag and posts are not listed.
I created the template via BLANK template of (TAG) templates category.
How to link this post loop element with the tags?
Thanks for the response.
One of the changes we made to the page template (page-pagebuilder-latest.php) was to exclude the article listing at the bottom of the page.
We do not want to display any blog posts on this page. We modified the page template so it excluded this section.
Line 111-203
Can we exclude this section with the Post Loop Settings on the page?
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.
I imported a tag cloud template with success and assigned it in theme options. However, Im not sure how to link the posts loop with the tags. The page seems to be working fine, but it returns zero results because the posts loop element is not linked with the tags
Hi Support Team,
I’m getting below in error.log when clicking on any posts.
2019/04/18 02:25:46 [error] 767#767: *215 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Call to undefined method td_module_single_base::show_item_scope() in /var/www/postanythings.com/public/wp-content/themes/Newspaper/loop-single.php:12
Stack trace:
#0 /var/www/postanythings.com/public/wp-includes/template.php(704): require_once()
#1 /var/www/postanythings.com/public/wp-includes/template.php(653): load_template(‘/var/www/postan…’, true)
#2 /var/www/postanythings.com/public/wp-content/themes/Newspaper/single.php(30): locate_template(‘loop-single.php’, true)
#3 /var/www/postanythings.com/public/wp-includes/template-loader.php(77): include(‘/var/www/postan…’)
#4 /var/www/postanythings.com/public/wp-blog-header.php(19): require_once(‘/var/www/postan…’)
#5 /var/www/postanythings.com/public/index.php(17): require(‘/var/www/postan…’)
#6 {main}
thrown in /var/www/postanythings.com/public/wp-content/themes/Newspaper/loop-single.php on line 12” while reading response header from upstream, client: xx.xxx.xxx.xxx, server: postanythings.com, request: “GET /proven-health-benefits-of-ayurvedic-massage/ HTTP/2.0”, upstream: “fastcgi://unix:/run/php/php7.2-fpm.sock:”, host: “www.postanythings.com”, referrer: “https://www.postanythings.com/”
Thanks & Regards,
Bobin Lonston
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();?>
I am trying to add a new category top section style
https://forum.tagdiv.com/td_api_category_top_posts_styleadd/
using the plugin method
https://forum.tagdiv.com/the-plugin-method/
My plugin folder structure
td-api-plugin
– td-api-plugin.php
– includes
– – category_top_posts_styles
– – – td_category_top_posts_style_77.php
– images
– – panel
– – – category_templates
– – – – icon-category-top-77.png
My td-api-plugin.php code
<?php
/*
Plugin Name: td-api-plugin
Plugin URI: http://tagdiv.com
Description: tagDiv API plugin
Author: tagDiv
Version: 1.0.2
Author URI: http://tagdiv.com
*/
class td_api_plugin {
var $plugin_url = '';
var $plugin_path = '';
function __construct() {
$this->plugin_url = plugins_url('', __FILE__);
$this->plugin_path = dirname(__FILE__);
add_action('td_global_after', array($this, 'hook_td_global_after'));
}
function hook_td_global_after() {
// Add a new category top posts style
td_api_category_top_posts_style::add('td_category_top_posts_style_77',
array (
'file' => $this->plugin_path . '/includes/category_top_posts_styles/td_category_top_posts_style_77.php',
'posts_shown_in_the_loop' => 1,
'img' => $this->plugin_url . '/images/panel/category_templates/icon-category-top-77.png',
'text' => 'Style 77',
'td_block_name' => 'td_block_big_grid_77'
)
);
}
}
new td_api_plugin();
td_category_top_posts_style_77.php code
<?php
class td_category_top_posts_style_77 extends td_category_top_posts_style {
function show_top_posts() {
parent::render_posts_to_buffer();
if (parent::get_rendered_post_count() == 0) {
return; // die here
}
?>
<div class=”td-category-grid td-container-wrap”>
<div class=”td-container”>
<div class=”td-pb-row”>
<div class=”td-pb-span12″>
<?php
echo parent::get_buffer();
?>
</div>
</div>
</div>
</div>
<?php
}
}
I am able to see the addition of the new category top posts style in the panel. I am able to select it and save the settings but get the following error on the category page.
wp_booster error:
td_api_base::mark_used_on_page : a component with the ID: td_block is not set.
…/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
Any pointers to were I am going wrong would be helpful.
Thanks.
Hi there, I know that the forum had somes topic about time agos already, but none of them work for me.
I am using the latest of wordpress and newspaper version.
Its the file I tried to edit
wp-content\plugins\td-cloud-library\modules\tdb_module_loop.php
I was trying to add time ago instead of date.
Thanks you
Hi,
If you want to remove the Latest article you need to change the page template to default -> https://forum.tagdiv.com/page-templates-2/ if you want to change the Latest Articles text please check in Homepage Latest Articles in Posts Loop Settings -> https://www.screencast.com/t/cSO5QNR1eOo
Thank you!
Hi,
We are investigating an issue like the one that is happening here. Seems that when there aren’t enough posts in a category that uses a cloud template, the header will not load properly. That is why in the first example the header template loads, while in the second it does not.
If there aren’t enough posts to populate the top grid and the loop below it, the cloud header will not be displayed.
We will fix this issue in the next theme update, sorry for this inconvenience. One solution would be to create category templates for those categories (with less posts in them) that don’t have a top grid so that the posts display in the loop.
There is also a quick fix that I could provide you until the theme update is released. replace this theme file – http://prntscr.com/n9fstd
With this one – http://www.filedropper.com/tdutil (make a backup of the file before attempting).
Thanks
Hi,
The code you enter in the theme panel main analytics section will be loaded when the mobile theme is active as well – http://prntscr.com/n7stns
You could use the loop ad spot – http://prntscr.com/n7sv7a set it to appear after 10 posts which is the number of posts displayed in the loop by default. It will appear at the bottom of the homepage and category pages – http://prntscr.com/n7sxdn
Thanks
Hello!
Could you please help with adjusting posts loop2.
I want to apply filter by category, but where is no «Filter» menu in Posts loop’s settings.
How to apply filter by category in posts loop?
https://yadi.sk/i/bMmImnFbyrxfyg
I want to display the second page of post loop on a different page which doesn’t has the content of the homepage is that possible?
Since I have my post loop module on the footer of my page when a user click on next page,the page loads and goes to the top of the homepage and he has scroll down to see the changed contents and also makes the user to feel that page isnt working
so i want to display the posts on new page
Dear TagDiv,
I been searching the forum for this code you provide to remove Woocommerce loop shop on the default page:
add_action( ‘pre_get_posts’, ‘bbloomer_remove_products_from_shop_page’ );
function bbloomer_remove_products_from_shop_page( $q ) {
if ( ! $q->is_main_query() ) return;
if ( ! $q->is_post_type_archive() ) return;
if ( ! is_admin() && is_shop() ) {
$q->set( ‘tax_query’, array(array(
‘taxonomy’ => ‘product_cat’,
‘field’ => ‘slug’,
‘terms’ => array( ‘null’ ),
‘operator’ => ‘IN’
)));
}
remove_action( ‘pre_get_posts’, ‘bbloomer_remove_products_from_shop_page’ );
}
add_action( ‘woocommerce_no_products_found’, function(){
if(is_shop()) {
remove_action( ‘woocommerce_no_products_found’, ‘wc_no_products_found’, 10 );
}
}, 9 );
#####################
Where do I paste them to?
Please help
Hi,
What exactly does not look as in the demo? Please let me know and we will investigate, what demo did you install and what does not look as in the demo after installing it. The default demo does not use any cloud library templates. It uses default templates only.
In the example you provided you use a big grid 5 and below it a block 4. So this template is not suited to be applied for multiple categories. Please use category grids and loops as I mentioned above. Then the template can be applied to all categories and there will be no problem.
Normal blocks and grids will always show the same content according to their filtering. Category grids and loops will show the proper content for each category. Edit that template and instead of the big grid 5 use a category grid, below it use a loop. That would be all there is to it.
For the tags only one template can be set, in general. You can use a loop element in the tag template as the main content, with a sidebar containing a block sorted by latest for example, like these tag template examples https://affiliate.tagdiv.com/#/load/Tag
If you preview and edit one of those templates you can see that a loop element is used
– http://prntscr.com/n3i85w
The loop doesn’t require any filtering, it will do it automatically depending on what is currently viewed. So that same loop can display for example posts that have the tag “reviews” when that tag page is accessed, or posts with the tag “wordpress” when that tag page is accessed.
Please let me know if you have more questions.
Thanks
I’ve been using Newspaper for over a year on my website and never had an issue upgrading. When I went from 9.5 (I think) to 9.6.1, the coloring of my main menu and footer disappeared. I have attempted the upgrade 3 different times and get the same result.
This is how it used to look. (Ignore the under construction banner):
Menu: http://prntscr.com/n39w6p
Footer: http://prntscr.com/n39vyv
Widgets: http://prntscr.com/n39wc3
This is how it looks now…
Menu: http://prntscr.com/n39wl4
Footer: http://prntscr.com/n39x3e
No widgets: http://prntscr.com/n39wwi
Another thing that is odd. The top featured post image used to have different dimensions. Now all of the posts on the homepage look the same. See the pretzels top post image:
Now: http://prntscr.com/n39yc0
Before: http://prntscr.com/n39z44
I am using header style 6 and footer style 14.
..The website is http://prntscr.com/n39x3e
There is some custom CSS but this has not changed in months and I have never had an issue with prior upgrades:
/* widget title color start */
.td-theme-wrap .block-title > span, .td-theme-wrap .block-title > span > a, .td-theme-wrap .widget_rss .block-title .rsswidget, .td-theme-wrap .block-title > a, .widgettitle, .widgettitle > a, .td-trending-now-title, .wpb_tabs li.ui-tabs-active a, .wpb_tabs li:hover a, .vc_tta-container .vc_tta-color-grey.vc_tta-tabs-position-top.vc_tta-style-classic .vc_tta-tabs-container .vc_tta-tab.vc_active > a, .vc_tta-container .vc_tta-color-grey.vc_tta-tabs-position-top.vc_tta-style-classic .vc_tta-tabs-container .vc_tta-tab:hover > a, .td-related-title .td-cur-simple-item, .woocommerce div.product .woocommerce-tabs ul.tabs li.active, .woocommerce .product .products h2:not(.woocommerce-loop-product__title), .td-theme-wrap .td_block_template_2 .td-block-title > *, .td-theme-wrap .td_block_template_3 .td-block-title > *, .td-theme-wrap .td_block_template_4 .td-block-title > *, .td-theme-wrap .td_block_template_5 .td-block-title > *, .td-theme-wrap .td_block_template_6 .td-block-title > *, .td-theme-wrap .td_block_template_6 .td-block-title::before, .td-theme-wrap .td_block_template_7 .td-block-title > *, .td-theme-wrap .td_block_template_8 .td-block-title > *, .td-theme-wrap .td_block_template_9 .td-block-title > *, .td-theme-wrap .td_block_template_10 .td-block-title > *, .td-theme-wrap .td_block_template_11 .td-block-title > *, .td-theme-wrap .td_block_template_12 .td-block-title > *, .td-theme-wrap .td_block_template_13 .td-block-title > span, .td-theme-wrap .td_block_template_13 .td-block-title > a, .td-theme-wrap .td_block_template_14 .td-block-title > *, .td-theme-wrap .td_block_template_14 .td-block-title-wrap .td-wrapper-pulldown-filter .td-pulldown-filter-display-option, .td-theme-wrap .td_block_template_14 .td-block-title-wrap .td-wrapper-pulldown-filter .td-pulldown-filter-display-option i, .td-theme-wrap .td_block_template_14 .td-block-title-wrap .td-wrapper-pulldown-filter .td-pulldown-filter-display-option:hover, .td-theme-wrap .td_block_template_14 .td-block-title-wrap .td-wrapper-pulldown-filter .td-pulldown-filter-display-option:hover i, .td-theme-wrap .td_block_template_15 .td-block-title > *, .td-theme-wrap .td_block_template_15 .td-block-title-wrap .td-wrapper-pulldown-filter, .td-theme-wrap .td_block_template_15 .td-block-title-wrap .td-wrapper-pulldown-filter i, .td-theme-wrap .td_block_template_16 .td-block-title > *, .td-theme-wrap .td_block_template_17 .td-block-title > * {
color: #4f1780!important;
}
/* widget title underline color start */
body .block-title {
border-color: #523F6D;
}
/*latest answer category */
.td-subcat-filter .td-subcat-list a{color:black!important;}
/* block navigation arrow color */
.td-next-prev-wrap a {color:black!important;}
.entry-crumbs a {
color: black;
}
.entry-crumbs {
color: black;
}
/* Keeps main menu logo from screwing up in tablet view */
@media (max-width: 1018px) and (min-width: 768px) {
.td-header-style-6 .td-container {
width: 100%;
}
.sf-menu>li>a {
padding: 0 8px;
}}
/* Remove extra whitespace around footer */
.td-main-content-wrap{ padding-bottom:0; }
/*Remove extra purple space in purple footer */
.td-footer-template-14 .td-footer-bottom-full{ padding-top: 0; }
.td-footer-bottom-full .td-pb-row>.td-pb-span3 {
margin-bottom: 0px;
}
/* reduce padding under purple header main menu REMOVED 9/4/18
.home .td-main-page-wrap {
padding-top: 1px;
}
*/
/* Hide ABOUT US in the footer */
.td-footer-wrapper .block-title span{ display:none }
/* Spacing between sharing buttons and content */
.td-post-sharing-top {
margin-bottom: 5px;
}
/* Spacing between Facebook like button and social media sharing icons */
.td-post-sharing-classic + .td-post-sharing {
margin-top: 20px;
}
/* COMMENT Font */
#reply-title{font-family: Verdana;}
/* WP Discuz LEAVE A REPLY Font
#wc-comment-header{font-family: Verdana;} */
/* WPForms font color */
div.wpforms-container-full .wpforms-form .wpforms-title {
color: #007acc;
}
Hi,
If you use the default author template, the number of posts will that are displayed will be the one from here – http://prntscr.com/n35lwg
If you use a cloud author template, most likely a loop element is used in it, this has a limit of it’s own – http://prntscr.com/n360dv
Let me know if you have more questions.
thanks
Hi,
This is a category page https://demo.tagdiv.com/newspaper/category/tagdiv-fashion/tagdiv-vogue/
The template used is a predefined template, template 1 – http://prntscr.com/n30wix
This is a tag page – https://demo.tagdiv.com/newspaper/tag/wordpress/
The width of both these templates is the default theme width, they do not use cloud templates. Only cloud templates can be created/edited with the composer
– https://affiliate.tagdiv.com/#/load/Category
– https://affiliate.tagdiv.com/#/load/Tag
In these you can stretch the rows if you want to have an even wider design, an example
– http://prntscr.com/n30ye1
A category template can be set for each category if you want to, a tag template can only be used in general, not per tag.
To display the posts in a category template use category grids and loop elements, this way you can apply the template to multiple categories
– http://prntscr.com/n30zjq – http://prntscr.com/n30zp1
The loop element can also be used in a tag template. Loops will show dynamic content, so for example if you add a loop element in a tag cloud template, it will always show the proper content regardless of the tag currently viewed, it will adapt. This is opposite to using normal grids and blocks which require filtering. A filtered block or grid will always show the same content.
Note that if you want wider content in pages you will have to create each page in the composer with this in mind. A general width setting does not exist.
So while for posts, categories, tags etc you can apply cloud templates, pages will each have to be designed as needed.
Please let us know if you have more questions or need help.
Thanks
Hello, the settings of the posts and the blocks are correct. But the TAG DIV editor options do not have the Layout tab in block 16 that I’m using at home.
in the editing screen of the div tag editor in the initial page paigina I can see the date but the color of the letter is very clear, very blurred. then when saved it disappears on the home page.
Is it not because of the clear heart of the letters of the date ??
where can i change the date color ??
see my settings
https://schoje.com.br/wp-content/uploads/2019/03/blocstings.png
https://schoje.com.br/wp-content/uploads/2019/03/loopposts.png
https://schoje.com.br/wp-content/uploads/2019/03/modo-de-edição.png
https://schoje.com.br/wp-content/uploads/2019/03/postsetings.png
-
This reply was modified 7 years by
SC HOJE News.
Hi,
Unfortunately for the moment this is the only option to set one ad in loop after a set number of posts, maybe in coming update will be same more fields for ads in mobile.
-> https://www.screencast.com/t/JpybmcUspDKo
Thank you for your understanding!
Hi,
I believe what you are looking for are the loop elements – http://prntscr.com/mzyejj
For example if a loop is placed in a cloud category template instead of a filtered block, you can apply that template for multiple categories, the loop will always display posts that belong to the currently viewed category.
This is the case with category grids as well – http://prntscr.com/mzyjbd
If I misunderstand please correct me.
Thanks
Hi,
Unfortunately our theme do not have yet the option to allow you to add ads in post loop, sorry!
In similar topics where for example ads were inserted in the loop after a certain number of posts this had to be coded inside the loop itself
– https://forum.tagdiv.com/topic/how-to-add-adsense-ad-after-5-10-articles-on-main-page/
– https://forum.tagdiv.com/topic/ads-on-category-between-posts/
– https://forum.tagdiv.com/topic/ads-on-category-pages/
Thank you!