Hello,
just in case someone has the same problem, here is the solution to add Custom Post Types into the loop of AMP-Pages. Of course this has to be done after every theme-update.
In /wp-content/plugins/td-composer/mobile/functions.php add the following function:
function add_custom_post_type_to_query( $query ) {
if (is_home() || is_archive()) {
$query->set( 'post_type', array('post', 'your_CPT_name_here') );
}
}
add_action( 'pre_get_posts', 'add_custom_post_type_to_query' );
Hello Yen,
Post
1. For this error, please check this topic: https://forum.tagdiv.com/topic/error-at-zones-6models-1dom-the-model-does-not-match-the-content-currene/
2. This social sharing icon appears only on the mobile version. If you want it to be displayed on the desktop version, you need to use a custom CSS => https://www.screencast.com/t/slYFHBpS8tr
.td-social-line{
display: inline-block;
}
The code needs to be set in Theme panel -> Custom code -> Custom CSS => https://www.screencast.com/t/fxetQe24ZHf
3. The authors need to be WordPress users.
4. To add a new role, you need to use a plugin -> https://www.namecheap.com/wordpress/wordpress-user-accounts/
Search
1. Please let me know if you want to change the text or design.
2. You can exclude the pages from search https://i.imgur.com/TFQ2IGH.png but you can use a plugin that can exclude only the selected page/post -> https://wordpress.org/plugins/search-exclude/
Mobile
1. Could you please elaborate on what you mean by RWD? The AMP works better only with the Mobile Theme plugin. From my point of view, if you don’t use the Mobile Theme plugin, then there is no reason or benefit to AMP. Please read all about AMP here: https://forum.tagdiv.com/tagdiv-amp-plugin-tutorial/
It comes with its own templates/design for page, post, category, etc so your current templates from the desktop theme will get converted to the mobile theme layout. Documentation here:
– https://forum.tagdiv.com/the-mobile-theme/
– https://forum.tagdiv.com/mobile-theme-introduction/
Please read all about AMP here: https://forum.tagdiv.com/tagdiv-amp-plugin-tutorial/
Note that you can not customize AMP so much, because it comes with its own design.
There are some settings in the Theme panel -> Mobile Theme and Dashboard -> AMP only.
You can not add a shortcode as in the TagDiv Composer. Please note that you can’t customize the AMP pages with the TagDiv Composer.
Make sure the redirect mobile visitors to the amp option is disabled.
Thank you!
Hi there, does anyone know what these errors mean?
These are from my error log file in the root. Seems that there are two tables missing: tds_options and tds_plans. I recently updated my theme from Newspaper 9 to 11. The update seemed to go well. Any insight on these errors would be appreciated.
Thanks
b…
[25-Jul-2022 10:27:31 UTC] WordPress database error Table ‘i5370152_wp6.tds_options’ doesn’t exist for query SELECT * FROM tds_options made by require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), include_once(‘/plugins/td-subscription/td-subscription.php’), td_subscription::instance, td_subscription->__construct, td_subscription->includes, tds_util::get_tds_options
[25-Jul-2022 10:27:31 UTC] WordPress database error Table ‘i5370152_wp6.tds_plans’ doesn’t exist for query SELECT * FROM tds_plans made by require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), include(‘/themes/Newspaper/functions.php’), require_once(‘/themes/Newspaper/includes/wp-booster/tagdiv-wp-booster-functions.php’), do_action(‘td_wp_booster_legacy’), WP_Hook->do_action, WP_Hook->apply_filters, {closure}, require_once(‘/plugins/td-composer/legacy/Newspaper/functions.php’), require_once(‘/plugins/td-composer/legacy/common/wp_booster/td_wp_booster_functions.php’), do_action(‘td_wp_booster_loaded’), WP_Hook->do_action, WP_Hook->apply_filters, tdc_plugin_init, do_action(‘tdc_loaded’), WP_Hook->do_action, WP_Hook->apply_filters, tds_config::on_tdc_loaded, tds_config::get_plans
Is there a way to disable editing the Cloud Header and/or Footer from TD Composer when editing standard pages and posts? It happens quite often that an editor is making changes to a post, but then accidentally drags a block into the header or footer and then it saves it globally. I mean there is nothing stating you are editing the global header or footer.
I am contemplating writing some CSS/JS to simply hide .td-header-desktop-wrap when editing through TD Composer, but wanted to see if there was a better solution.
Also having the same problem.
serverlog: GET /wp-content/plugins/td-composer/includes/wpeditor.php?wp_path=/var/www/vhosts/tuinpedia.nl/httpdocs/ HTTP/1.0
I don’t know why the wp_path part gets added to it, is that normal?
-
This reply was modified 4 years by
Opjeklompen.
Hello,
If you use Wp Rocket, you can try to exclude the following files
/jquery-?[0-9.](.*)(.min|.slim|.slim.min)?.js
/jquery-migrate(.min)?.js
/wp-content/plugins/td-composer/legacy/Newspaper/js/tagdiv_theme.min.js
tdBlocksArray
Thank you!
Greetings!
We’re experiencing a problem with our Cloud Templates. Everything was working fine some weeks ago, we’re not sure at what time these errors started to happen. When we try to edit the CloudTemplates with the TD Composer, the next message appears:
Error at rows: 1(models) : 5(dom). The model does not match the content Current state has involved an issue. You could try an UNDO operation (CTRL+Z / CTRL+SHIFT+Z)
This happens with almost all of the CloudTemplates we have on the site, but there are some exceptions, like out Error 404, and some headers. The rest of templates are not working. The number of row (models) changes, but it seems like te 5(dom) keeps the same through al lof the errors.
By the way, there’s NO PROBLEM with the TD Composer when i edit pages.
So, I checked the forum for possible solutions and I found this topic: https://forum.tagdiv.com/tagdiv-composer-not-working/
I tried the solutions explained at number 5) but:
Solution 1) I import a new blank template and the error keeps on happening, even when it’s completley empty, I can’t recreate anything.
Solution 2) There’s no extra HTML inside this cloudtemplates. We used Little codes inside some pages, but there’s no problem whit any page yet. We use a plug-in to insert a Little bit of html on the <head> section of our landing page, but it’s just that one, here’s a picture of it: https://imgur.com/a/sOZQedH
I’m not sure how to follow the last suggestion about the mod_security… We haven’t modify anything like that so, what should i be looking for?
Could you help us figure out what’s going on? Thanks a lot!
Hi
I migrated my site to new server and tried getting the site working with the latest PHP. Tested with 8.0 and 8.1 and the site breaks down (works fine with 7.4 and 7.3).
When I turned off all plugins, it worked fine. Then I turned all one by one and the problem starts with TD composer.
The unpleasant surprise for me is that TD composer has become a black box plugin. Turning it off breaks my website completely. It was not like that when I chose Newspaper as my theme. This is crazy. No site should break down for turning off a plugin!!!
I am getting an error message on homepage, nothing is getting displayed except for the top menu. Can anybody help?
wp_booster error:
td_res_context->get_att(image_height) Internal error: The atts are not set yet(AKA: the render template method was called without atts)
/home/parisbkd/public_html/parimaanam/wp-content/plugins/td-composer/legacy/common/wp_booster/td_css_res_compiler.php
Hello,
Please check these threads and follow all the steps from here: https://forum.tagdiv.com/topic/http-error-500-internal-server-error-2/
-> https://forum.tagdiv.com/topic/i-am-getting-problem-with-the-td-composer-plugin/
Also, please contact your host to help you to resolved it https://support.cloudflare.com/hc/en-us/articles/115003011431-Troubleshooting-Cloudflare-5XX-errors -> https://kinsta.com/blog/502-bad-gateway/
Make a test and deactivate ALL plugins except tagDiv ones, also if you are using a cache plugin, deactivate it, clear all cache and let me know the results!
Thank you!
Hi,
I don’t know when, but on our page stopped working ajax categories dropdown. They are shown, but when you click on them it moves page to up and nothing is filtred. We use them in Flex Block 4.
I’ve made a research why it does not work. I have tried turning off WP Rocket and Redis object cache, but no results. I’ve found out, that this code from your js (/wp-content/plugins/td-composer/legacy/Newspaper/js/tagdiv_theme.min.js?ver=11.5.1):
jQuery(".td-subcat-item a").on("click", function(a) {
a.preventDefault();
a = tdBlocks.tdGetBlockObjById(jQuery(this).data("td_block_id"));
!0 !== a.is_ajax_running && (a.is_ajax_running = !0,
jQuery("." + jQuery(this).data("td_block_id")).find(".td-cur-simple-item").removeClass("td-cur-simple-item"),
jQuery(this).addClass("td-cur-simple-item"),
a.td_filter_value = jQuery(this).data("td_filter_value"),
a.td_current_page = 1,
tdBlocks.tdAjaxDoBlockRequest(a, "pull_down"))
});
When page is completly loaded and subcategories are shown (they are some how lazyloaded) and I paste this code into the console, ajax categories works.
You can chek it here on homepage (e.g. section “Video”): https://www.inrybar.cz/
How to fix this please?
With best regards,
David Pavelka
Greetings,
as per screenshot attached when I try to update my site via “td-composer” builder in console it prints me the errors you see.
Link screenshot: https://tinypic.host/i/screenshot-22.W7jY2
Through the builder it is not possible for me to do anything as it is blocked.
In the home page of the site some sections have disappeared showing part of the “td-composer” shortcode. Here is an example:
“[vc_separator style =” dotted ”color =” # 0a0a0a ”tdc_css =” eyJhbGwiOnsicLS ”
I don’t know if the problem may be due to the latest theme update.
You can help me?
A thousand thanks.
Hello,
I want to edit my website http://atahualpa.com/ but when I open Edit with TD Composer the page does not load.
The page stays like this: https://ibb.co/6ryWmyQ
Any idea on where is is the problem, please?
Thanks for your help.
Greetings,
as per screenshot attached when I try to update my site via “td-composer” builder in console it prints me the errors you see.
Through the builder it is not possible for me to do anything as it is blocked.
In the home page of the site some sections have disappeared showing part of the “td-composer” shortcode. Here is an example:
“[vc_separator style =” dotted ”color =” # 0a0a0a ”tdc_css =” eyJhbGwiOnsicLS ”
I don’t know if the problem may be due to the latest theme update.
You can help me?
A thousand thanks.
Hi there!
I’m trying to list full numbers of articles in category page via set the post numbers in Tag Div Composer for that template. But have no luck to do this.
Rendering in browser shows that found only 3 posts, but there are more than 10 published.
block_tdi_73.td_column_number = “3”;
block_tdi_73.block_type = “td_flex_block_1”;
block_tdi_73.post_count = “3”;
block_tdi_73.found_posts = “3”;
block_tdi_73.header_color = “”;
block_tdi_73.ajax_pagination_infinite_stop = “”;
block_tdi_73.max_num_pages = “1”;
tdBlocksArray.push(block_tdi_73);
Here’s link
I have found the solution. But you should really say something more prominent in the documentation: don’t grab the original template file from /themes/Newsmag/ but from /plugins/td-composer/legacy/Newsmag/
Thanks,
Gunter
Also, I’m getting this in console:
GET https://nuglmagazine.com/wp-content/plugins/td-composer/includes/wpeditor.php?wp_path=/var/www/ 403
(anonymous) @ jquery.min.js?ver=3.6.0:2
$ @ jquery.min.js?ver=3.6.0:2
html @ jquery.min.js?ver=3.6.0:2
(anonymous) @ js_files_for_wrapper…68289d05535e19x:458
dispatch @ jquery.min.js?ver=3.6.0:2
v.handle @ jquery.min.js?ver=3.6.0:2
TagDiv crashed on save and now my 3-column page layout appears in a single column. I am prompted to try undoing (ctrl+z or ctrl+shift+z) but nothing happens. My homepage is now messed up. The exact prompt states the following:
Errors at columns: 3(models) : 1(dom). The model does not match the content Current state has involved an issue. You could try an UNDO operation (CTRL+Z / CTRL+SHIFT+Z)
Please assist me.
My website URL is
https://koreantom.com/
1. Why the space between ‘Crypto’ and ‘NFT’ is bigger than the space ‘World’ and ‘more’ ??
Maybe I think there is ‘Empty column’ in ‘Edit with TD Composer’ !!! How can I remove ‘Empty Column’ ?
2. When I go to catagory like ‘ World’, why it’s said ‘We can’t find that page!’ ??
Hello everyone,
I have a problem with my website sinces a few minutes. I was updating my plugins and Tag div composer. Then i receive this message : Parse error: syntax error, unexpected ‘?’ in /home/bamasy/public_html/wp-content/plugins/td-composer/legacy/Newspaper/includes/td_config.php on line 33581
Can someone Help me?
For some reason, I am no longer able to add element or edit element. I don’t have “row” “column” “Element”, delete or duplicate buttons. Please help!
For those who encounter this bug despite of a well configured theme and server, you can circumvent it by increasing the timeout of the get_all request sent by your server to the cloud API.
It does the trick for me to increase it from 12 seconds to 90 seconds. It seems that my hosting provider’s servers maybe busy some times and need more time to get responses from the API.
To increase this timeout, edit those files :
//file path 'www/wp-content/plugins/td-cloud-library/tdb_ajax.php'
//line 557
$api_response = wp_remote_post($api_url . '/' . $cloud_end_point, array (
'method' => 'POST',
'body' => $cloud_post,
'timeout' => 12 //INCREASE THIS
));
// file path 'www/wp-content/td-composer/tdb_ajax.php'
//line 210
$api_response = wp_remote_post($api_url . '/' . $cloud_end_point, array (
'method' => 'POST',
'body' => $cloud_post,
'timeout' => 12 //INCREASE THIS
));
For me, 90s is enough to make it works properly, even when my hosting provider’s connectivity is overloaded.
I’m Facing this error and unable to edit the home page and align the post categorize
Hmmm… can’t reach this pageIt looks like the webpage at https://www.premiumnewz.com/wp-admin/post.php?post_id=2765&td_action=tdc&tdbTemplateType=page&prev_url=https%3A%2F%2Fwww.premiumnewz.com%2Fwp-admin%2Fadmin.php%3Fpage%3Dtdb_cloud_templates might be having issues, or it may have moved permanently to a new web address.
ERR_HTTP2_PROTOCOL_ERROR
I’m Facing this error
Hmmm… can’t reach this pageIt looks like the webpage at https://www.premiumnewz.com/wp-admin/post.php?post_id=2765&td_action=tdc&tdbTemplateType=page&prev_url=https%3A%2F%2Fwww.premiumnewz.com%2Fwp-admin%2Fadmin.php%3Fpage%3Dtdb_cloud_templates might be having issues, or it may have moved permanently to a new web address.
ERR_HTTP2_PROTOCOL_ERROR
Hi,
Indeed, if you are using the mobile theme plugin and you want to optimize the mobile-theme.eot fonts, then you need to add the swap manually in the theme plugin, the file that needs to be edited is this one -> wp-content\plugins\td-composer\mobile\style.css -> https://i.imgur.com/dkOzlUg.png you need to add the font-display: swap; like this -> https://i.imgur.com/flkHuFP.png
This should help you!