- ApiPractical example – How to add a new Block and Module
- Apitd_api_thumb::update
- Apitd_api_thumb::add
- ApiAPI – Thumbnail – Introduction
- Apitd_api_module::delete
- Apitd_api_module::update_key
- Apitd_api_module::update
- Apitd_api_module::add
- ApiAPI – Modules – Introduction
- Apitd_api_block::delete
- Apitd_api_block::update_key
- Apitd_api_block::update
- Apitd_api_block::add
- ApiAPI – Blocks – Introduction
- ApiUsing the Theme API in plugins
ok i found a solution to design the template… Now
How can I filter in the same Grid flex or block, flex box: Some of the normal post categories and a custom post category.
Thank you
Hi,
In the categories feed, I use “Flex block 1” and “Posts loop” below.
May I use “Flex block 1” for some categories, and, for example, “Flex block 2” for others?
Or may I use “Flex block 1” with visible images for some categories and hide images (Flex block 1 – Layout – article images – hide image) for others?
Same for “Posts loop”:
May I use “Posts loop” with Modules per row = 1, with visible image, and for some categories configure Modules per row = 2 and Hide image on?
In general, is it possible to make the newspaper theme more flexible?
Could you help me?
Hi Samir,
Please check it in the General tab. Maybe you have set an offset on that Flex bloc; if so, remove the offset. How many articles are added to that category? If an offset is set and the added articles are less than that offset, then there will be no results to be displayed – https://forum.tagdiv.com/flex-block-settings-guide/
Dear Calin,
I need to display the featured image everywhere if an image is uploaded, as it is now. And, on the other hand, hide featured images globally from all posts and pages (no empty space, no broken images) if a featured image is not uploaded.
If I remove the featured image from the single post template using tagDiv Composer, then the featured image will not display in all posts.
I use Flex Block 1. If I hide the image in the Layout – article image – hide image, then the image hides all categories, even if I upload it.
Could you figure out and help me?
Dear Calin,
I need to display the featured image everywhere if an image is uploaded, as it is now. And, on the other hand, hide featured images globally from all posts and pages (no empty space, no broken images) if a featured image is not uploaded.
If I remove the featured image from the single post template using tagDiv Composer, then the featured image will not display in all posts.
I use Flex Block 1. If I hide the image in the Layout – article image – hide image, then the image hides all categories, even if I upload it.
Could you figure out and help me?
Hi,
In this situation ou can use a placeholder for those articles https://prnt.sc/zipTSnSGNC9y you can also use tagDiv Composer and remove the featured image from the single post template – https://i.imgur.com/Q5hV6o4.png – https://i.imgur.com/wM6mPOz.png from and from flex blocks you can also remove the image – https://i.imgur.com/RsrNpQX.png
Hi,
In case you want to have this functionality https://demo.tagdiv.com/newspaper_podcasts/ then you need to use audio formats for your articles, set the links for audio, and the featured image will be transformed into audio. Also, on your websites, you should use flex blocks to have the audio icon displayed. https://i.imgur.com/zceMuk7.png
Also, you can import from cloud the blocks you like for audio and video format and just adjust them using tagDiv Composer.
Also, for the single post template, make sure that you are using the Single Featured image, not the background one.
Thank you!
Hi,
To display those results on a page, you need to use tagDiv Composer. Add a Flex Block (or even a Flex Block Builder). After setting the layout you want, configure it to display the custom post type you need; in your case, country-town and/or drinks-stays-eat.
https://forum.tagdiv.com/flex-block-settings-guide/
Thank you!
Here are the Flex Builder settings.
https://drive.google.com/file/d/1guwibmkQXjVsTY-sbYA3VU8ZxNP5Is0M/view?usp=drive_link
https://drive.google.com/file/d/1mYo34cyuY98nLKvkrN0FSmcaVLfOP937/view?usp=drive_link
https://drive.google.com/file/d/1_pGAfmayQdWiF-em8nb3Yba6uvaVHvVL/view?usp=drive_link
This is what’s shown. The posts at the top are the posts loop block.
https://drive.google.com/file/d/1DWGg-f8y_5PeTKz87B6LpTr6YKK8-K-g/view?usp=drive_link
Hi,
Use tagDiv Composer edit the page and add the Big grid element that looks similar to the Big Grid Flex you have now, after that, you can remove the Big Grid Flex https://i.imgur.com/H1BnCjw.png
How do I replace Big Grid with Big Grid Flex? I’m not quite sure how!
Hi,
The results are not better on mobile; the performance is now 77 before was 66, but there are some suggestions you didn’t make. You didn’t replace the element Big Grid Flex with the Big Grid element (same layout) to see the results.
Hi,
Unfortunately, this is not possible.
The Feeds plugin you are using automatically adds articles, and the Flex block displays those articles. However, the link to the original source can only be set within the article itself.
This means that when a user clicks on the Flex block, the article will open on your website. From there, if you include the source link inside the article, users will be able to access it.
Thank you!
Hi,
I am using WP RSS Aggregator Pro v5 coupled with the tagdiv Newspaper Default Pro theme for a news aggregator site.
Can I add the RSS Aggregator shortcode to an already created flex block to get the direct external link functionality? My current set up has a nice-looking homepage. If you click an article on the homepage I am taken to another page on my site for the article. I want to have the first click on the article to link directly to the external site for the full article. Is this possible with the Flex Blocks?
Thanks!
Hi,
Reducing the CSS is quite important but since you are using tagDiv Standard Pack and quite many blocks and options from it, removing this plugin is not an option in your case, but this will reduce the css by half from the size it has now.
Now related to the “fetchpriority=high should be applied”, please replace the element Big Grid Flex with the Big Grid element (same layout).
Use a plugin that can convert the images to WebP, for example, ewww image optimizer- https://wordpress.org/plugins/ewww-image-optimizer/
There is a banner image set that does not have a height and width – https://i.imgur.com/XCHOeoC.png. It can be resolved using tagDiv Composer, select that banner ad, and in the image tab, set the width and height for the mobile version of that banner.
Other suggestions are to use an optimization for css and js (Autoptimize) and a Cloudflare.
Hi,
Unfortunately, there is no option for this. What can be used is the title length from the block, or an alternative is to use a custom css:
.td_flex_block_1 {
max-height: 380px;
overflow: overlay;
}
The above css will apply to all fle block 1 so what you should do is to set a class on those blocks you want to aply teh code and replace taht class with the class td_flex_block_1
It can be set in a raw CSS, after that you can change the number of articles that will be displayed, save the changes in tagDiv Composer and check it on the frontend.
Thank you!
Hi,
I am using the Momentum prebuild but needed some functionality from Coach Pro for courses so I downloaded the Coach plugin. However, I am having a similar issue to https://forum.tagdiv.com/topic/coaching-pro-single-course-featured-video/ where the Course CPT entry or its taxonomies do not appear in ACF but the course field groups do. As a result I can’t get the Course domain taxonomy archives to list their associated courses.
This is the message that shows where the course list should have been on the Domain archives:
Flex Loop Builder: The Cloud Library Module Template set for this block is not valid or it no longer exists. Please select another Module Template.
Can you please point me to the JSON file to import to resolve? Or if there are alternate steps required, please let me know.
Thank you.
Hi Iqtidar,
I’m sorry about the trouble with the transients, but I’m glad we were able to find a workaround for both issues in the end.
I’ve also shared a note with our developers to take a closer look at how the transients for the Flex Block cache option are intended to work and identify improvements, especially in handling and automatically clearing expired transients.
Thank you!
I’m designing a page with Flex Block 1, adding posts filtered by category. The problem is that if a post title exceeds the width, it inserts a line break, misaligning the container with the other posts. How can I make the container width adjust uniformly for all posts, regardless of their content?
Hi,
Our featured video option will work as on this demo – https://demo.tagdiv.com/newspaper_video_news_pro/
Also, on the flex block, you’ll find the video option in the Layout tab – https://i.imgur.com/a0XJ5Bn.png. Autopay will apply when the pop-up video module is open. Also, when you are on article, if you want the video to start automatically then make sure that on the single post featured image you enabled this option – https://i.imgur.com/eqyuuyH.png
Thank you
Hi,
1. I believe there has been a misunderstanding regarding the cloud templates.
In the General tab, you will find the standard cloud templates for a blog. These include templates for the header, footer, single post, category, tag, author, date, 404, attachment, and search pages.
The template that can be used for a single doctor is available under the Single Article cloud templates (see: https://i.imgur.com/xNZUSoK.png). However, the template you are trying to use is a Custom Post Type (CPT) template. CPT templates cannot be applied to regular single posts; they can only be used for their respective CPTs. Additionally, this CPT template is not part of the cloud templates—it was provided in my previous reply—and, as mentioned, it works only for CPTs, not for standard posts or articles.
If you want your regular posts to have a layout similar to the CPT layout, you will need to recreate it manually using the Theme Builder in tagDiv Composer. If custom fields are required, you can use the ACF plugin to achieve this.
To copy and paste the CPT template I provided, please edit a single under the Custom post type – https://i.imgur.com/ZvgMAhV.png hover over the 3 dots and click on “edit” https://imgur.com/NlMnH9L. After that, replace the code with the one from here https://cdn.tagdiv.com/wp-content/uploads/2026/01/Custom-Post-Type-CPT-Doctors-PRO.txt
2. As mentioned above, there is a misunderstanding. I believe this comes from trying to combine multiple prebuilt templates without fully understanding how the theme works. It seems there may be some confusion about core concepts such as what a post is, what a CPT (Custom Post Type) is, and the difference between categories and taxonomies, including how they are configured and how they are meant to function.
The section you are referring to (https://i.imgur.com/UrNPZOE.png) is displaying the Doctors CPT, and its layout is provided by the Doctors PRO Plugin. This plugin can be installed from Newspaper > Plugins > Dedicated Plugins for Prebuilt Websites (https://i.imgur.com/6eVC20P.png). Once the plugin is installed, you can use Flex Block X to select and display that module (https://i.imgur.com/nZpalQh.png). However, since the plugin creates the module using predefined code, we recommend creating your own custom module using the Module Builder, and then displaying it via the Flex Block Builder.
By doing this, you gain full control over the module’s layout and settings. For example, if you want to add an “Age” field, you can create a custom field using a plugin such as ACF, and then display it in your custom module using the Custom Field element.
Thank you!
Hi,
Yes, those transients are from the theme and the option for cache on flex blocks is used https://forum.tagdiv.com/use-flex-blocks-cache-option/
What you should do is to clear the old/expired transients, and this should resolve the problem.
How to Manage and Delete Transients in WordPress (The Easy Way)
1-2. The template code https://demo.tagdiv.com/newspaper_doctors_pro/tdcpt_doctors/herman-rehema/ is in this pastebin Custom Post Type – Doctors, just make sure that you have the cloud templates. CPT/Taxonomies: a single template that you want to hold the code. If you do not have one, you can import one, and after that, edit it https://i.imgur.com/NlMnH9L.png and replace the code with teh one from the above link.
Here https://i.imgur.com/xIJKuIb.png you have set the limit to 6 “posts”, do you have those posts or you have only 2? If you have more than 2, then please check the sort set on the flex block is set on popular – https://i.imgur.com/PraO5Jq.png set it on latest to see if the rest of the articles appear.
This – https://i.imgur.com/Ukc4bYp.png is not a form input for a custom field. The post title https://i.imgur.com/Ukc4bYp.png will be given to the article, so there is no need for any custom field.
For the submit button, you should set the post type that your articles will be – https://i.imgur.com/K6WytUC.png if you want to use it for a contact form only to send and receive an email you can use a plugin like Contact Form 7, because the current system you try to use is made to create a CPT post type https://i.imgur.com/mAYVT6j.png https://i.imgur.com/j31xd5o.png
About this – https://screenrec.com/share/5Qzn0Zp23C and this https://screenrec.com/share/YMg8iRp3sX you understand right that will allow the user to create 5 articles in the 3 mentioned post types https://i.imgur.com/OTozbX7.png what you need to do is to have 3 separate pages with a form in them like this one https://i.imgur.com/tK2Wm8e.png, and the settings on the submit button should be to the right CPT that is for that page
Loops (https://forum.tagdiv.com/flex-block-builder-flex-loop-builder/)- https://i.imgur.com/8DlCG9G.png are spafile blocks that automatically filter the results after the template is set, if they are set on a page, they will display the latest, and you can set on them the post type you want to display – https://i.imgur.com/8DlCG9G.png
Here https://i.imgur.com/CtQc9Ax.png you need to use the slag not the id https://i.imgur.com/FTcXcOf.png
Hi,
If you are using flex blocks https://i.imgur.com/49WaLVd.png, flex grids, then you can use the tagDiv Composer to edit the pages/template, select the block and look in the layout tab after the image settings https://forum.tagdiv.com/tagdiv-composer-tutorial/
Thank you!