- NewspapertagDiv Composer Tutorial
- NewspaperCredit System
- NewspaperCreate a frontend submission form
- NewspaperHow to Use the Tabbed Content shortcode
- NewspaperCreate a form contact page
- NewspaperFilters and sorting for taxonomies
- NewspaperUser review system
- NewspaperModal Popup
- NewspaperFlex Block Settings Guide
- NewspaperSocial Sharing
- NewspaperSingle Post Shortcodes
- NewspaperInfinite Loading for Single Posts
- NewspaperThe Newspaper Mobile Theme: Introduction
- NewspaperHow to Add a Logo in Newspaper
- NewspaperCustom Post Type Support
- NewspaperCloud Library Templates
- NewspaperDesign your Post Pages using the Cloud Library Templates
- NewspaperHeader Builder
- NewspapertagDiv Cloud Library Plugin
- NewspaperAd Box Element and Ads Overview
Hi Claudio Souza, how are you?
I believe you are referring to this section – https://i.imgur.com/jhItDSn.png right? I se that there the elements are one under the other and normally should be one beside other. Unfortunately, only changing the page, I do not know exactly what settings are there. If you can contact us via email at contact@tagdiv.com and provide temporary WP-Admin access, we’ll check it and adjust the layout to be displayed nicely.
The child theme is provided with the theme in the theme package – https://forum.tagdiv.com/the-child-theme-support-tutorial/ but can you please let me know for what you’ll like to use it? I’m asking because the pre-built website you have installed can be entirely edited in front-end with tagDiv Composer and is using cloud templates, which can be edited using the builder, without needing to touch the code.
Thank you!
Hello tagDiv Support Team,
I need to restrict access to Cloud Templates for users with the Editor role on my Newspaper theme website. Currently, editors can still see and edit Cloud Templates in the backend, which I need to prevent.
What I’ve tried:
– Installed “User Role Editor” plugin and adjusted capabilities
– Added custom code to functions.php to remove menu items and capabilities
– None of these solutions have successfully hidden or blocked access to Cloud Templates
What I need:
– Only Administrators should be able to access, view, and edit Cloud Templates
– Editors should be completely blocked from accessing Cloud Templates (both in the admin menu and via direct URL access)
– Editors should still be able to create and edit regular posts and pages
Questions:
1. Is there a built-in setting in Newspaper theme to restrict Cloud Templates access by user role?
2. What is the correct capability or hook to use to prevent editors from accessing the Cloud Templates custom post type (tdb_templates)?
3. Can you provide the recommended code solution to implement this restriction?
Theme Details:
– Theme: Newspaper
– Plugins: tagDiv Composer, tagDiv Cloud Library (both active)
– WordPress Version: 6.8.3
– Theme Version: 12.7.3
Thank you for your assistance!
Best regards
Did you, via FTP; after disabling caching plugin;
a) delete old theme
b) upload new, uncompressed theme folder, not the ‘all files’ folder
c) delete td-composer plugin
d) upload new td-composer plugin
e) login
f) re-enable td-composer plugin
??
This works for me on every site, running PHP 8.3x.
Hi,
The header files for the header styles are on the path wp-content/plugins/td-composer/legacy/Newsmag/parts/header.
When tagDiv COmposer is not enabled the one in used will be – wp-content/plugins/td-composer/legacy/Newsmag/header.php
I hope this will help you!
Yep that works for single post template, I managed to edit the date time format.
However it seems for posts (w/ title, description, categories, date, reading time) inside a Flex Block Builder that came with the default Forest Beat example, there’s no way to edit the “date element” inside the Flex Block Builder. Clicking on the date brings me to the “Flex Block Builder” instead of the date element.
So it’s still not working for me specifically for the posts on Forest Beat homepage. Still has its own date time format.
I had to dig into the source code (i.e. via Edit instead of tagDiv composer) to find out:
[tdb_flex_block_builder limit=”2″ tdc_css=”eyJhbGwiOnsibWFyZ2luLWJvdHRvbSI6IjAiLCJkaXNwbGF5IjoiIn19″ cloud_tpl_module_id=”23″ modules_on_row=”eyJhbGwiOiI1MCUiLCJwaG9uZSI6IjEwMCUifQ==” modules_gap=”eyJhbGwiOiI0MCIsInBvcnRyYWl0IjoiMzAifQ==” modules_vert_align=”stretch” all_modules_space=”eyJwaG9uZSI6IjMwIn0=” offset=”1″]
There’s no way to edit the date field inside tdb_flex_block_builder!
-
This reply was modified 9 months by
jjgoi.
Hi RENATO,
The element shortcode from the single post template is a special one, which is why it is displaying only on the single post template, so if there are shortcodes that should trigger the article IDs, they will work correctly. BUG the shortcodes can be set in our theme on any page and cloud templates using the column text and text with title elements, you just need to set the shortcode in one of those elements and it will render the shortcode – https://imgur.com/DSSni9j
For the image situation, I will recommend setting a class on the row that is holding the image elements, doing this you can replace teh dynamic class tdi_98/7 – https://i.imgur.com/ngnSDSS.png
To hide an element using tagDiv Composer, select it and check the css tab, then on display, set the hidden option – https://i.imgur.com/CKrwQ2z.png use teh manage to see the hidden elements – https://i.imgur.com/IQ9JRUz.png
Related to the date from Google search results https://yoast.com/help/date-appears-search-results/
About the pagespeed, the best results are using the WP Rocket plugin, but this is a premium plugin and most of users prefer something free, here, it can be use the WP Super Cache, but with the Autoptimize plugin, othetrcache plugins that can be used with good results: WP Optimizer or LiteSpeed.
Also, using Cloudflare will help you a lot!
The live search element can be “translated” using tagDiv Composer select the element and look for the text set in composer https://i.imgur.com/0MuagAg.png
Related to the image requests for reducing the module image size, this is in the theme on flex blocks – https://i.imgur.com/PKmODaB.png https://i.imgur.com/tszBQkz.png and on single image element – https://i.imgur.com/jlzRLWu.png
The shortcode support in the theme is since teh theme was on Themeforest. As I mentioned above, the shortcodes should be set in column text or text with title.
Thank you!
hello, @Calin So about the previous issues, I can’t get shortcodes to work at all, because in TagDiv Composer! It doesn’t show up on the page, it only appears in posts. I spoke with the owner of the search plugin, and he said he tried to contact you guys from the theme to get support for his plugin and didn’t get a response. The guy from the search theme said this about your theme, https://imgur.com/a/HcEGq1O
I had to create a search field, I couldn’t add it to the header, but I managed to add it to the home page. I’m having some problems.
The block images, I can’t reduce the image size no matter what I do, I have to set up CSS for all of them, it’s a lot of work, and when I delete some tdi_ element it changes the number and messes everything up. Well, tdi_98, I can’t get the image to be 90px by 90px. I used this CSS when it was tdi_97 and it was working perfectly. Then I had to delete some elements, it changed to tdi_98 and it stopped working. I adapted everything correctly, only the images aren’t staying 90px by 90px, they’re huge. Look there, the CSS is correct. https://ibb.co/TMNTDZvB desktop mode only, because for mobile I had created a separate page. https://glostv.com/tv-ufg
Could you provide CSS to fix the large image issue? To make it 90px by 90px.
About this related thing, https://ibb.co/qLBYQZPX, I can’t set it to a primary category, like there’s this option, https://ibb.co/1GJkWGGs, to make it primary up there, https://ibb.co/VpJb4rCj. Is this possible via CSS?
About this, is there also a way to hide the title without needing CSS?
Is there somewhere in the theme that disables the date that keeps showing up?
Google searches, https://ibb.co/hFZNCXJf I already deleted everything in WordPress, did everything, hid it in WordPress, https://ibb.co/wFRmCNrh
Is there any way to make the site faster with this theme? You guys in the theme recommended Super Cache, which is horrible depending on the configuration, it modifies the CSS and everything. I measured my site on https://pagespeed.web.dev/ and it’s terrible, seems like the theme is too heavy. Is there a way to improve this? Because when I update something it takes too long to update the page; I’m not logged in.
Lastly, how do you translate https://ibb.co/LXG4WdqF I tried to find it and couldn’t. If you can help me with these problems.
Ask the theme owner to add in the next update the ability to reduce the image size of the tdi_ modules so we don’t need to keep using CSS code. Ask them to add shortcode support in TagDiv Composer! on pages, because it only appears in posts.
Hi,
Please try this link – https://cdn.tagdiv.com/wp-content/uploads/2025/11/td-composerfix.zip
Thank you!
@Calin Sorry, I put Portuguese, correcting it, it’s English. I’m having 6 problems with https://glostv.com/. Can you help me solve them? I need to resolve this; I intend to buy another theme from you at the end of the month, but I need to fix this. First, the footer on mobile devices doesn’t show “About us, contact”. Quick links and useful links are not in the middle, but at the bottom. Below GosTV, the slogan, and “Watch TV channels” don’t appear on the same line. See link https://ibb.co/Cs5sZzFr
Second, the homepage and no static page (page, not post) allows/offers the option to add a shortcode for a search field. This option doesn’t exist for pages in TagDiv Composer! I bought a search plugin and I can’t use it. I search and nothing appears. See here: https://ibb.co/YT33pMyJ. However, in blog posts, the shortcode field appears normally. There’s a defect. In the normal post it appears, look here, https://ibb.co/QvwxFmwj. The “defect is only on the pages, the TagDiv Composer! doesn’t show the block/option to add the shortcode.” It’s not possible to edit the normal editor, as it has to be the TagDiv Composer editor!
Third, as I mentioned, I can’t put any shortcode on pages/posts (reaffirming item 2), but I can’t change this horrible search field in the header. I’ve already broken the site several times trying to solve this here https://ibb.co/M5M35FyV. I tried in TagDiv Composer! and via code, I can’t. I have the Ajax Search Pro plugin, which uses shortcode to add a search button and it doesn’t work. Here, https://ibb.co/M5M35FyV, I would need to use this, https://ibb.co/KjsV4FD2.
Fourth. On mobile devices, I really need these blocks to appear in the following sequence on this page and all pages created with TagDiv Composer!: Related Channels and Featured Channels. I created a CSS and it didn’t work:
CSS
@media (max-width: 767px) {
.tdi_99 {
order: 1 !important;
}
.tdi_82 {
order: 2 !important;
}
This is only for mobile devices, but I don’t want to have to create a separate mobile page for them. It would have to look like this: https://ibb.co/TDymN4NR, one below the other, and the rest would continue. I didn’t want to create a mobile page for all of them. Link: https://glostv.com/tv-sete-lagoas
Fifth, I really need to reduce the height and width of the contact form. It’s too large. Is this possible with custom CSS? If possible, please help. https://glostv.com/contato
Sixth, Please send me custom CSS for mobile devices to remove the spacing from this here https://ibb.co/99z0MQZ6 on this page: https://glostv.com/estados.
Estou com 6 problemas, no https://glostv.com/ pode me ajudar a resolver eles, preciso resolver, pretendo comprar mais um tema no final do mês de Vocês, mas preciso resolver isso. Primeiro, Rodapé no dispositivo móvel não mostra “Sobre nós, contato”. Links rápidos e links úteis não estão no meio, e sim embaixo. Abaixo GosTV, slogan, Assistir canais de TV, não aparece na mesma linha. Olhe link https://ibb.co/Cs5sZzFr
Segundo, A página inicial e nenhuma página estática (página, não postagem) não permite/oferece a opção de colocar shortcode para colocar campo de pesquisa. Não existe essa opção para páginas no TagDiv Composer! Comprei plugin de pesquisa e não consigo utilizar. Eu pesquiso e aparece nada. Olhe aqui. https://ibb.co/YT33pMyJ. No entanto, em postagens de blog, aparece normalmente o campo para shortcode. Tem algum defeito. Na postagem normal aparece, olhe aqui, https://ibb.co/QvwxFmwj. O “defeito está somente nas páginas, o TagDiv Composer! não aparece o bloco/opção de shortcode para ser adicionado.” não tem como editar editor normal, pois tem ser editor TagDiv Composer!.
terceiro, Como citei, não consigo colocar nenhum shortcode em páginas/postagens (reafirmando o item 2), porém não consigo mudar esse campo de pesquisa horrível no cabeçalho. Já quebrei o site várias vezes tentando resolver isso aqui https://ibb.co/M5M35FyV. Eu tentei no TagDiv Composer! e via código, não consigo. Tenho o plugin Ajax Search Pro, que usa shortcode para adicionar botão de pesquisa e não vai. Aqui, https://ibb.co/M5M35FyV, precisaria usar isso, https://ibb.co/KjsV4FD2.
quarto. https://ibb.co/RG6MtMws Em dispositivo móvel, preciso muito que nessa página e em todas feitas com o TagDiv Composer! apareçam esses blocos na seguinte sequência: Canais relacionados e Canais em destaque. Montei um CSS e não funcionou:
CSS
@media (max-width: 767px) {
.tdi_99 {
order: 1 !important;
}
.tdi_82 {
order: 2 !important;
}
}
Somente para dispositivo móvel, mas não quero ter que criar uma página móvel separada para elas. Teria que ficar desse jeito https://ibb.co/TDymN4NR, um debaixo do outro e o restante continuasse. Não queria criar página móvel para todos. link https://glostv.com/tv-sete-lagoas
quinto, Preciso muito diminuir a altura e largura do formulário de contato. Está muito grande. É possível com um CSS personalizado? Se for possível, ajude. https://glostv.com/contato
sexto, Me passe CSS personalizado para dispositivo móvel para remover o espaçamento disso aqui https://ibb.co/99z0MQZ6 nesta página: https://glostv.com/estados.
-
This reply was modified 9 months by
RENATO.
Themeforest sent out a notice this morning that update is available to download.
Best way to update, is decompress files on local drive; then login via FTP to site, remove old theme, upload new version; remove old plugin for td-composer; upload new version.
Log into panel, activate composer plugin. Check menus and footer.
Always make backup of site prior to update!
Hi TagDiv, my site didgeproject.com is experiencing some theme issues. Here’s a report found by wordfence. Can you help? https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/td-composer/tagdiv-composer-541-unauthenticated-stored-cross-site-scripting
thanks in advance for your help
Hi,
The above version differs and includes a fix for the search problem. Just make sure you have the Newspaper v12.7.3 and use the composr from this link
https://cdn.tagdiv.com/wp-content/uploads/2025/11/td-composerfix.zip
Hi,
You just need to have the last theme version, 12.7.3, when replacing the tagDiv Composer with the one provided by me, do not downgrade or do anything else.
https://cdn.tagdiv.com/wp-content/uploads/2025/11/td-composerfix.zip
Thank you!
Hi,
Related to the search problem, it will be need to replace the current theme plugn tagDiv Composr with the one from here – https://cdn.tagdiv.com/wp-content/uploads/2025/11/td-composerfix.zip
Also, we’ll prepare a theme update that will include the fix.
Thank you!
Hi, since the very last update last week, the search buttons are no longer working. I can do a live search and items do show up but when I hit the button, the search results page wont open and a fatal error page will pop up instead. I have enabled debug and this is what I get:
Fatal error: Uncaught TypeError: Cannot access offset of type array on string in /var/www/html/news/wp-content/plugins/td-composer/legacy/common/wp_booster/td_util.php:1196 Stack trace: #0 /var/www/html/news/wp-content/plugins/td-composer/legacy/common/wp_booster/td_util.php(340): td_util::get_template_id() #1 /var/www/html/news/wp-content/plugins/td-composer/legacy/common/wp_booster/td_wp_booster_functions.php(513): td_util::check_header() #2 /var/www/html/news/wp-includes/class-wp-hook.php(324): td_load_css_fonts() #3 /var/www/html/news/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #4 /var/www/html/news/wp-includes/plugin.php(517): WP_Hook->do_action() #5 /var/www/html/news/wp-includes/script-loader.php(2299): do_action() #6 /var/www/html/news/wp-includes/class-wp-hook.php(324): wp_enqueue_scripts() #7 /var/www/html/news/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #8 /var/www/html/news/wp-includes/plugin.php(517): WP_Hook->do_action() #9 /var/www/html/news/wp-includes/general-template.php(3192): do_action() #10 /var/www/html/news/wp-content/plugins/td-composer/legacy/Newspaper/header.php(8): wp_head() #11 /var/www/html/news/wp-content/plugins/td-composer/td-composer.php(254): require_once(‘…’) #12 /var/www/html/news/wp-includes/class-wp-hook.php(324): {closure:/var/www/html/news/wp-content/plugins/td-composer/td-composer.php:249}() #13 /var/www/html/news/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #14 /var/www/html/news/wp-includes/plugin.php(517): WP_Hook->do_action() #15 /var/www/html/news/wp-content/themes/Newspaper/header.php(2): do_action() #16 /var/www/html/news/wp-includes/template.php(810): require_once(‘…’) #17 /var/www/html/news/wp-includes/template.php(745): load_template() #18 /var/www/html/news/wp-includes/general-template.php(48): locate_template() #19 /var/www/html/news/wp-content/plugins/td-cloud-library/wp_templates/tdb_view_search.php(8): get_header() #20 /var/www/html/news/wp-includes/template-loader.php(106): include(‘…’) #21 /var/www/html/news/wp-blog-header.php(19): require_once(‘…’) #22 /var/www/html/news/index.php(17): require(‘…’) #23 {main} thrown in /var/www/html/news/wp-content/plugins/td-composer/legacy/common/wp_booster/td_util.php on line 1196
I have tried to use another cloud template for the search page, I have tried editing the existing one and saving… but nothing helps same error all the time.
Any clues on what is going on?
Thanks in advance,
Jose
After the last update, I noticed that some features on my website are not working, such as tagDiv Composer blocks, page loading, post templates have disappeared and do not open. I ran some tests by disabling the plugins and noticed that the tagDiv Composer plugin itself is causing this. I need help, as it is affecting the functioning of my website and part of the content cannot be accessed due to the following error:
wp_booster error:
td_api_base::mark_used_on_page : a component with the ID: single_template_2 is not set.
/home1/matine35/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_api.php
Blocks also do not appear on the home page and only display the code:
[td_block_16 m16_tl=”20″ category_id=”7772″ limit=”6″]
Other blocks and grids simply disappeared.
Here are two links to view the problems:
Home: https://matinecinetv.com.br/
Hi,
Related to the search problem, it will be need to replace the current theme plugn tagDiv Composr with the one from here – https://cdn.tagdiv.com/wp-content/uploads/2025/10/td-composer-fix.zip
Also, we’ll prepare a theme update that will include the fix.
Thank you!
Hi,
Ok, so the code is working for the desktop and responsive version, this is good because you can use the responsive version.
Now the question is, are you facing the problem using the tagDiv Mobile theme plugin or using the mobile page template?
If is the mobile page template, it should be working without any extra code, but in case you are using the tagdiv mobile theme plugin then the code should be set in mobile functions.php too wp-content/plugins/td-composer/mobile/functions.php
Thank you!
greenwoodcalendar.com
When I deactivate the built-in social counter, my site returns. Is there a way I can use the social counter with my new Newspaper 12 theme. Here is the code I received:
Uncaught Error: number_format(): Argument #1 ($num) must be of type int|float, string given
in /home/greenwx6/public_html/wp-content/plugins/td-social-counter/shortcode/td_block_social_counter.php on line 1176
Call stack:
number_format()
wp-content/plugins/td-social-counter/shortcode/td_block_social_counter.php:1176
td_block_social_counter::render()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php:27
td_global_blocks::proxy_function()
wp-includes/shortcodes.php:434
do_shortcode_tag()
preg_replace_callback()
wp-includes/shortcodes.php:273
do_shortcode()
wp-content/plugins/td-composer/includes/tdc_composer_block.php:222
tdc_composer_block::do_shortcode()
wp-content/plugins/td-composer/includes/shortcodes/vc_column.php:440
vc_column::render()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php:27
td_global_blocks::proxy_function()
wp-includes/shortcodes.php:434
do_shortcode_tag()
preg_replace_callback()
wp-includes/shortcodes.php:273
do_shortcode()
wp-content/plugins/td-composer/includes/tdc_composer_block.php:222
tdc_composer_block::do_shortcode()
wp-content/plugins/td-composer/includes/shortcodes/vc_row.php:1204
vc_row::render()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php:27
td_global_blocks::proxy_function()
wp-includes/shortcodes.php:434
do_shortcode_tag()
preg_replace_callback()
wp-includes/shortcodes.php:273
do_shortcode()
wp-content/plugins/td-composer/includes/tdc_composer_block.php:222
tdc_composer_block::do_shortcode()
wp-content/plugins/td-composer/includes/shortcodes/tdc_zone.php:806
tdc_zone::render()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php:27
td_global_blocks::proxy_function()
wp-includes/shortcodes.php:434
do_shortcode_tag()
preg_replace_callback()
wp-includes/shortcodes.php:273
do_shortcode()
wp-includes/class-wp-hook.php:324
WP_Hook::apply_filters()
wp-includes/plugin.php:205
apply_filters()
wp-includes/post-template.php:256
the_content()
wp-content/plugins/td-composer/legacy/Newspaper/page.php:51
include(‘/home/greenwx6/publi…y/Newspaper/page.php’)
wp-includes/template-loader.php:106
require_once(‘/home/greenwx6/publi…/template-loader.php’)
wp-blog-header.php:19
require(‘/home/greenwx6/public_html/wp-blog-header.php’)
index.php:17
Query Monitor
Hi TagDiv Team,
Like some other users, I’m consistently getting the following error when editing new pages or the homepage (but not posts): Error at zones: 6(models): 0(dom) “The model does not match the content. Current state has involved an issue.”
This even happens immediately after I download one of your pre-built templates—even before adding any shortcodes.
What I discovered:
After some testing, I found that if I use the “Post Type Switcher” plugin to change the page type (in the Classic Editor) from Page → Cloud Template, the error in Composer disappears completely!
Once I do that:
I can edit the page in Composer without any errors.
The layout works as expected.
However:
The page is then removed from the Cloud Template list, since it’s technically no longer a “Page” it is a Cloud Template type.
It only displays properly if I access it through a URL like
https://example.com/tdb_templates/news
If I try to access it normally at https://example.com/news, I either get a blank page or a critical error.
My theory
It seems that posts don’t trigger this error because the Theme Panel → Templates section includes a redirect or link definition for posts and single templates. That likely ensures TagDiv Composer initializes the correct “zone” mapping.
For pages and the homepage, there’s no equivalent setting in the Theme Panel, so Composer may be loading the wrong internal model—hence the zone mismatch.
The problem
At the moment, I can’t create or edit any new pages or homepage layouts without this error.
Only posts work normally.
Possible solution idea
If my guess is right, perhaps the Composer needs a way to assign a Cloud Template mapping (like the Post templates) for Pages and Homepage in the Theme Panel. That might resolve the zone mismatch entirely.
Do you have any other workaround or insight on this?
It’s currently blocking all new page and homepage creation.
Thanks for your help!
Hi, I have a problem on the results page after using the “search” function.
Both the plugin and the template are up to date, and this behavior is new.
From the homepage: click on the magnifying glass “search” icon, and you can try typing something like “Bhutan” and pressing Enter.
When the search results page loads, these two error lines appear:
Warning: Illegal offset type in /home/mhd-01/www.trolleygirl.it/htdocs/wp-content/plugins/td-composer/legacy/common/wp_booster/td_util.php on line 1196
Warning: Illegal offset type in /home/mhd-01/www.trolleygirl.it/htdocs/wp-content/plugins/td-composer/legacy/common/wp_booster/td_util.php on line 1196
I found the corresponding file, but I don’t know what I need to modify.
I emailed the Sql support, but they told me that the errors clearly refer to the **td-composer** plugin. We don’t know whether this might be due to an incompatibility with other plugins, with the active PHP version, or with the theme you are using in WordPress.
In any case, the **td-composer** plugin is not working properly.
Could you please help me?
Thank you,
Stefania
PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, non-static method workbox_ga::show_js() cannot be called statically in /home2/egzostiv/public_html/wp-includes/class-wp-hook.php:324 Stack trace: #0 /home2/egzostiv/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #1 /home2/egzostiv/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #2 /home2/egzostiv/public_html/wp-includes/general-template.php(3192): do_action(‘wp_head’) #3 /home2/egzostiv/public_html/wp-content/plugins/td-standard-pack/Newspaper/header.php(11): wp_head() #4 /home2/egzostiv/public_html/wp-content/plugins/td-composer/td-composer.php(254): require_once(‘/home2/egzostiv…’) #5 /home2/egzostiv/public_html/wp-includes/class-wp-hook.php(324): {closure}(”) #6 /home2/egzostiv/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #7 /home2/egzostiv/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #8 /home2/egzostiv/public_html/wp-content/themes/Newspaper/header.php(2): do_action(‘tdc_header’) #9 /home2/egzostiv/public_html/wp-includes/template.php(810): require_once(‘/home2/egzostiv…’) #10 /home2/egzostiv/public_html/wp-includes/template.php(745): load_template(‘/home2/egzostiv…’, true, Array) #11 /home2/egzostiv/public_html/wp-includes/general-template.php(48): locate_template(Array, true, true, Array) #12 /home2/egzostiv/public_html/wp-content/plugins/td-standard-pack/Newspaper/attachment.php(6): get_header() #13 /home2/egzostiv/public_html/wp-includes/template-loader.php(106): include(‘/home2/egzostiv…’) #14 /home2/egzostiv/public_html/wp-blog-header.php(19): require_once(‘/home2/egzostiv…’) #15 /home2/egzostiv/public_html/index.php(17): require(‘/home2/egzostiv…’) #16 {main} thrown in /home2/egzostiv/public_html/wp-includes/class-wp-hook.php on line 324
Issue Summary
A fatal TypeError occurs in TagDiv Composer’s td_util.php file when performing search queries on sites using the Newspaper theme. The error prevents pages from loading and disrupts user experience.
Error Details
Perform a search query (e.g., /?s=term).
Error triggers during template loading.
Root Cause
In the get_template_id method, the code assumes td_cpt option is always an array:
$td_cpt = td_util::get_option('td_cpt');
if ( !empty( $td_cpt[$post_type]['search_tpl'] ) ) {
// ...
}
However, get_option may return a string in some cases, causing the TypeError when using array syntax.
Suggested Fix
Add an array type check before access:
$td_cpt = td_util::get_option('td_cpt');
if ( is_array($td_cpt) && !empty( $td_cpt[$post_type]['search_tpl'] ) ) {
$cpt_search_template_id = $td_cpt[$post_type]['search_tpl'];
}
This affects sites with CPT searches, leading to broken search functionality. We recommend implementing this fix in future plugin updates to ensure compatibility and stability.
The “edit with tagdiv composer” is not working: The side menu to enable editing doesnt load but gives 404 error page. Have cleared cache, have tried to uninstal theme and reinstal it. Have also tried o uninstal tagdiv composer plugin and reinstal it and activate it but still geting this error message
Please help. Been on this for days now.
Thank you.