- ApiPractical example – How to add a new Block and Module
- Apitd_api_top_bar_template::delete
- Apitd_api_top_bar_template::update_key
- Apitd_api_top_bar_template::update
- Apitd_api_top_bar_template::add
- Apitd_api_single_template::delete
- Apitd_api_single_template::update_key
- Apitd_api_single_template::update
- Apitd_api_single_template::add
- Apitd_api_footer_template::delete
- Apitd_api_footer_template::update_key
- Apitd_api_footer_template::update
- Apitd_api_footer_template::add
- Apitd_api_smart_list::delete
- Apitd_api_smart_list::update_key
- Apitd_api_smart_list::update
- Apitd_api_smart_list::add
- Apitd_api_thumb::delete
- Apitd_api_thumb::update_key
- Apitd_api_thumb::update
Yes but that’s not so pretty that way 🙂
see the picture in my example: https://postimg.cc/V0jgMbPr
or in live: https://www.novo.vpz.hr/zupanijska-uprava/upravni-odjel-za-zdravstvo-branitelje-i-socijalnu-skrb/
Hey Calin,
The latest file you provided didn’t actually fix that issue. If you look at lines Line 1286-1294 you do have
if ( empty( $categories_objects ) && $show_siblings ) {
$categories_objects = get_categories(
array(
'parent' => $this->category_obj->parent,
'hide_empty' => 0,
'number' => $limit
)
);
}
However if $this->category_obj->parent is 0, get_categories() returns all top-level categories.
That should be changed to be
// if no child categories get siblings
if ( empty( $categories_objects ) && $show_siblings ) {
// only get siblings if this term has a parent
if ( $this->term_obj->parent ) {
$args = array(
'taxonomy' => $this->term_obj->taxonomy,
'hide_empty' => false,
'number' => $limit,
'parent' => $this->term_obj->parent
);
$categories_objects = get_terms( $args );
}
}
The same issue/behavior exists for taxonomies on Line 1114-1129.
Just hoping this gets incorporated in next version.
The image upload button isn’t working; it does absolutely nothing. I don’t know if it started after the last update. I have everything updated to the latest version, but I’ve also tried three previous versions, and it still doesn’t work.
It simply does nothing. I don’t understand what could be happening, but it won’t let me upload images.
This is an Ad-Block element, but the same thing happens with any image upload; the button doesn’t do anything.
Example: https://ibb.co/4ncMt4rb
Hi,
Unfortunately, I do not quite understand. If you want to use the subscription on your website, but the login and register options?
https://forum.tagdiv.com/login-how-to-enable-user-registration/ (for normal login, register and menu login element for subscription – https://i.imgur.com/TC93vd8.png)
Subscriptions – https://forum.tagdiv.com/subscriptions/
Unfortunately, I do not understand this ” Other question is i need to get free size wieght and hight menu for divtag Visit My Website I need two Menu header Both for mobile and desktop tablet free space that i can manage two menu” Could you please provide some more detsils maybe someexample to can understand?
jQuery.Deferred exception: Cannot read properties of undefined (reading ‘getShortcodeFromData’) TypeError: Cannot read properties of undefined (reading ‘getShortcodeFromData’)
at Object.saveHeaderState (http://54.255.186.58/wp-content/plugins/td-composer/assets/js/js_files_for_wrapper.min.js?ver=9c5a7338c90cbd82cb580e34cffb127f:28:388)
at Object.init (http://54.255.186.58/wp-content/plugins/td-composer/assets/js/js_files_for_wrapper.min.js?ver=9c5a7338c90cbd82cb580e34cffb127f:23:279)
at http://54.255.186.58/wp-admin/post.php?post_id=186&td_action=tdc&tdbTemplateType=page&prev_url=%2F%2F54.255.186.58%2Fwp-admin%2Fedit.php%3Fpost_type%3Dpage:802:44
at c (http://54.255.186.58/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-hooks&ver=6.9:2:25304)
at fireWith (http://54.255.186.58/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-hooks&ver=6.9:2:26053)
at e (http://54.255.186.58/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-hooks&ver=6.9:2:27300)
at t (http://54.255.186.58/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-hooks&ver=6.9:2:27330) undefined
ce.Deferred.exceptionHook @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-hooks&ver=6.9:2Understand this warning
Thanks – I don’t know what you mean by “check the image caption settings and compare them with how the image appears on the article page. It’s possible that one image is configured using Gutenberg with different settings than the other.”
The caption is placed in WordPress as always, in both examples I give. Can you take a look at the WordPress admin page to see this, in each case?
I think I understand: you don’t have to enter measures for example 600×20 in the box concerned but leave it in the book..
My home page suddenly get like this, but previous it was cloumns and blocks and all
[td_block_big_grid_8 td_grid_style=”td-grid-style-3″ sort=”modified_date” open_in_new_window=”yes” show_modified_date=”yes” tdc_css=”eyJhbGwiOnsiYmFja2dyb3VuZC1zdHlsZSI6ImNvbnRhaW4iLCJkaXNwbGF5IjoiIn19″]
[td_block_1 sort=”” limit=”6″ custom_title=”MOST POPULAR” td_ajax_filter_type=”” td_ajax_filter_ids=”” td_filter_default_txt=”All” ajax_pagination=”next_prev” category_id=”20″][td_block_2 category_id=”134″ limit=”6″ custom_title=”AUTOMATION & FUTURE OF WORK” header_color=”#dd4646″ td_filter_default_txt=”All” custom_url=”https://technichepro.com/category/ai-machine-learning/future-of-work/”]
[td_block_6 category_id=”20″ limit=”2″ custom_title=”AI & MACHINELEARNING” td_filter_default_txt=”All” header_color=”#25b3b5″ custom_url=”https://technichepro.com/category/ai-machine-learning/” sort=”random_posts” linked_posts=”parent”]
Hi,
I am using NewsPaper on VPS with very good specs, but our website loading is too slow and there is many database queries coming from NewsPaper theme that slows down the server.
Here are the example of the slow queries :
| 15152 | news5r3o_l9s | localhost | news5r3o_l9s | Query | 0 | Sending data | SELECT SQL_CALC_FOUND_ROWS WFZ_posts.ID
FROM WFZ_posts LEFT JOIN WFZ_term_relationships ON ( | 0.000 |
| 15159 | news5r3o_l9s | localhost | news5r3o_l9s | Query | 1 | Sending data | SELECT SQL_CALC_FOUND_ROWS WFZ_posts.ID
FROM WFZ_posts LEFT JOIN WFZ_term_relationships ON ( | 0.000 |
| 15161 | news5r3o_l9s | localhost | news5r3o_l9s | Query | 1 | Sending data | SELECT SQL_CALC_FOUND_ROWS WFZ_posts.ID
FROM WFZ_posts LEFT JOIN WFZ_term_relationships ON ( | 0.000 |
| 15171 | news5r3o_l9s | localhost | news5r3o_l9s | Query | 1 | Sending data | SELECT SQL_CALC_FOUND_ROWS WFZ_posts.ID
FROM WFZ_posts LEFT JOIN WFZ_term_relationships ON ( | 0.000 |
| 15152 | news5r3o_l9s | localhost | news5r3o_l9s | Query | 0 | Sending data | SELECT SQL_CALC_FOUND_ROWS WFZ_posts.ID
FROM WFZ_posts LEFT JOIN WFZ_term_relationships ON ( | 0.000 |
| 15159 | news5r3o_l9s | localhost | news5r3o_l9s | Query | 1 | Sending data | SELECT SQL_CALC_FOUND_ROWS WFZ_posts.ID
FROM WFZ_posts LEFT JOIN WFZ_term_relationships ON ( | 0.000 |
| 15161 | news5r3o_l9s | localhost | news5r3o_l9s | Query | 1 | Sending data | SELECT SQL_CALC_FOUND_ROWS WFZ_posts.ID
FROM WFZ_posts LEFT JOIN WFZ_term_relationships ON ( | 0.000 |
| 15171 | news5r3o_l9s | localhost | news5r3o_l9s | Query | 1 | Sending data | SELECT SQL_CALC_FOUND_ROWS WFZ_posts.ID
FROM WFZ_posts LEFT JOIN WFZ_term_relationships ON ( | 0.000 |
Please help me to reduce the queries or to make the website more faster and not overload the server.
Hi Calin,
That doesn’t quite fix the underlying problem.
For example, if my category hierarchy were as follows:
Category 1
– sub-category 1
– sub-category 2
– sub-category 3
Category 2
Category 3
– sub-category 4
– sub-category 5
Category 1 page would show ‘sub-category 1’, ‘sub-category 2’ and ‘sub-category 3’ when using category siblings.
Category 3 page would show ‘sub-category 4’ and ‘sub-category 5’ as siblings.
Both of the above would be correct, however Category 2 page, with no available subcategories, would incorrectly show ‘Category 1’, ‘sub-category 1’, ‘sub-category 2’, ‘sub-category 3’, ‘Category 3’, ‘sub-category 4’ and ‘sub-category 5’.
In previous versions, siblings were ignored if no sub-categories are present. That’s how I believe it should be.
Trying Images again
Site is https://rvtravellife.com and I’m having an issue with a padding gap appearing below the header and above the footer on some pages. This occurs on the live sites, but when I load the page into tag div composer it renders correctly.
This is the home page live with the gap
This is the home page header viewed in tag div composer
The same gap appears on the home page footer live, but not the composer view
There is a similar, but not equivalent issue on the post and page viewss
If you can give me any insight on what’s causing this and how to correct, it would be appreciated. My other instance of Newspaper at https://thisoldcampsite.com is working perfectly with what is supposed to be the same formatting
Site is https://rvtravellife.com and I’m having an issue with a padding gap appearing below the header and above the footer on some pages. This occurs on the live sites, but when I load the page into tag div composer it renders correctly.
This is the home page live with the gap
This is the home page header viewed in tag div composer
The same gap appears on the home page footer live, but not the composer view
There is a similar, but not equivalent issue on the post and page viewss
If you can give me any insight on what’s causing this and how to correct, it would be appreciated. My other instance of Newspaper at https://thisoldcampsite.com is working perfectly with what is supposed to be the same formatting
Hi,
You can set the same block to display all of your CPTs. However, the limitation is that you cannot choose which CPT module to display directly from the block. Because of this, the results are based only on filters and sorting options.
The block does offer the possibility to manually set the IDs of the CPTs you want to display. The downside of this approach is that it must be updated manually every time you add or change an article. You can see an example here: https://i.imgur.com/lC0HYOi.png
An alternative solution would be to use a row layout:
Create a row and set it to 2 columns.
In the first column, add a Big Grid Flex 1 element and configure it to display only one result, adjusted to your needs.
In the second column, if you need multiple columns, add an inner row and set the number of inner columns as required.
You can add multiple inner rows within the same column if needed.
In each inner row, add the same Big Grid Flex 1 element and adjust its settings to display the desired CPT.
This setup provides more flexibility and allows you to control exactly what content is displayed in each area.
Thank you!
Hi,
Do you want this option to be constant to a block, for example, in your image, only the block that is in the center to have that live tag? If is so then it can be done by using a custom css:
Here is what you should do:
Edit the page using tagDiv Composer, select the block you want to display the live icon, then add the class cls-live – https://i.imgur.com/l67gVqU.png after that add the raw css element and set the blow css https://i.imgur.com/4rTX1e7.png
.cls-live .td-module-title a::before {
content: "LIVE";
position: relative;
z-index: 999;
display: inline-block;
align-items: center;
color: #ff2b2b;
font-weight: 600;
letter-spacing: 1px;
padding: 6px 8px;
border-radius: 20px;
}
.cls-live .td-module-title::before {
content: "";
position: relative;
transform: translateY(-40%);
display: inline-block;
vertical-align: middle;
width: 8px;
height: 8px;
background: #ff2b2b;
border-radius: 50%;
animation: pulse 1.5s infinite;
}
@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(255, 43, 43, 0.7);
}
70% {
box-shadow: 0 0 0 10px rgba(255, 43, 43, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(255, 43, 43, 0);
}
}
Thank you!
Hi,
The theme includes only one global option to enable or disable lazy loading. Because of this, lazy loading should be controlled from **a single location only**. If you are using a caching plugin or an image optimization plugin, please make sure that lazy loading is enabled in only one place to avoid conflicts.
Additionally, if you are using a separate image optimization plugin, it may offer the option to exclude lazy loading for specific elements. This can usually be done by targeting the element’s CSS class, for example:
.td_block_big_grid_flex_3 .entry-thumb
Using exclusions like this can help fine-tune how lazy loading behaves on your site.
Thank you!
Due to a bug in the TagDiv paywall component, which I never intended to use, i have thousands of Broken Links shown in google search console. I’ve removed the function and the element from my theme. However, how do I get rid of the incorrect links in the database?
Here is one example:
https://presse-augsburg.de/category/polizeimeldungen-bayern/polizeipraesidium-oberfranken/tds-switching-plans-wizard/
Site: https://przystanekplanszowka.pl/
Newspaper version: 12.7.4
PHP version 8.4
Hello,
I have a problem with displaying pages that contain reviews as well as category pages related to reviews on my WordPress website.
On review posts and review category pages, PHP warnings are displayed instead of the page content. The warnings look like this:
Warning: A non-numeric value encountered in
/home/przysta2/domains/przystanekplanszowka.pl/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_review.php on line 149
Example: https://przystanekplanszowka.pl/category/recenzje/page/2
Additionally, directly inside single articles, the following warnings appear:
Warning: A non-numeric value encountered in
/home/przysta2/domains/przystanekplanszowka.pl/public_html/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php on line 3739
Warning: A non-numeric value encountered in
/home/przysta2/domains/przystanekplanszowka.pl/public_html/wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_review_overall.php on line 312
(The last warning appears twice.)
Example: https://przystanekplanszowka.pl/2019/04/dochodzenie-jeden-morderca-i-sledztwo-w-toku.html
The issue only affects pages that use the review functionality. Other pages work correctly.
Could you please advise what might be causing this issue and how I can fix it?
Is this related to PHP version compatibility or the review module configuration?
Thank you in advance for your help.
Best regards,
Przystanek Planszówka
Dear Calin,
May I current Global settings, duplicate with a new name, for example, “Category template – Znew”, then customize it and use it for the Category Cloud Library Template, as you advised me?
Thank you
Hi Ling,
I understand, but if you think you want to share the results from the grid this is not possible, in the grid you can actually display articles from normal post categories and custom post categories by using the settings provided for categories, taxonomies and post type to display, but tjhose will be displayed base on the sort selected, for example if is on lates will display the lates from all categories you have configured for the grid https://forum.tagdiv.com/big-grid-flex-settings/
Hi,
The answer is yes and no.
You can use different flex blocks and loops per category if you create different category templates and you assign them to those categories, but not to the same category template.
For example you can create a category template that will be used on most of the categories, this will be set as global https://prnt.sc/7RxaX0PI4tqQ then you create one extra template (or as many as you want) that will be assigned individually, for example – https://prnt.sc/YI7ui-Q-beyG
Thank you!
Hi,
If you want to remove the sidebars that were made using the theme, then you can do it, for example, from the theme panel > templates settings, open the archive template section and look for custom sidebar + position from there select the dropdown and click on X to remove the sidebar https://prnt.sc/iw-9VRbKe5cH
Hi Calin,
Thank you for your reply.
Would it be possible to remove the link to our website from this forum? It is the link for our test site.
We cannot open imgur.com in the UK. Could you please upload the example on another URL?
We tried the options you suggested, but the clarity of the image is lost, it is going blur. We removed the image of the iPad and added it again, immediately its clarity is lost and size is reduced.
Many thanks
Hi Calin,
Thank you for your reply.
Would it be possible to remove the link to our website from this forum? It is the link for our test site.
We cannot open imgur.com in the UK. Could you please upload the example on another URL?
Many thanks