- NewsmagPage templates
Hi,
The post loop that displays the search results should display the results sorted by latest, so the newer posts firsts. This is the case for every post loop, like in the category pages, tag pages, author pages. I tested as you mentioned, and I see there’s a problem, at least on the first page of the search results. There are older posts displayed before newer posts. That’s quite unusual.
Could it be caused by a plugin perhaps? Or what if you try it with a default wordpress theme if possible?
If you want I will take a closer look at it, you can send us an email at contact@tagdiv.com and provide admin access (user and pass) for the website.
Thank you!
Hi,
While ads can’t be inserted inside blocks, they can be inserted in post loops. There is an option which I think was added after this post was created -> https://prnt.sc/R9PVUePWS02G An ad can be set there and can be repeated after a set number of posts.
Besides that, ads can be displayed in ad boxes everywhere in the page, just not inside other blocks, only around them.
Thank you!
Hello Simion,
Thank you very much for your quick reply.
Today I tried again, and sure enough, this time Flex Loop Filter worked – at least partially. I didn’t do anything differently than yesterday. Maybe I should have waited a bit between making changes yesterday.
Nevertheless, thank you for your illustrated guides. They helped me be confident that I wasn’t doing something completely wrong.
Unfortunately, I haven’t been able to fully implement my use case yet. It is now possible to see and select the subcategories. However, I wasn’t able to limit the subcategories to only selected ones. Example: A subcategory called “Region” has three sub-subcategories: “Region A”, “Region B”, and “Region C”. Only these three should be visible to the user. The user should be able to select one, e.g., Region A, and then in the Flex Loop only posts from Region A should appear – or, depending on the selection, Region A and Region B.
I wasn’t able to enter the slugs of the subcategories into the list of slugs. It only accepts ‘category’. Or is there a special syntax I need to use here? Or, how can I display only slugs I want to have within the filter list?
Regards
Nelly
Hi,
If you add a flex loop in the homepage it will display the latest posts from all your categories by default.
If you want to use the filters for the flex loop, then you have to add taxonomy slugs. So for example, I want to display all my categories in the filter, I add the category slug -> https://prnt.sc/gWzHwas7s7Ie
Or, I have a taxonomy called Ingredient for a custom post type -> https://prnt.sc/LwbyOYtRCmWy I add the ingredient slug -> https://prnt.sc/tYz93jI8vnCb
If it’s not working, then it probably means you aren’t using the correct taxonomy slugs. Please make sure you add them correctly, and all the terms from that taxonomy should appear in the filter. If you want I can take a closer look as well. I’ll need admin login for the website, which you can send via email at contact@tagdiv.com and please also include a link to this topic in the email.
Thank you!
Hello,
for the following use case I tried to use the “Flex Loop …” items and unfortunately it does not work for me:
On the homepage, I wanted some of the posts filtered by region after user clicks on region buttons. User should be able to choose one or the other region and also should be able delete the filter. All other – non-regional posts should stay the same at the same time.
I have inserte all necessary Flex Loop elements on the page. The “flex loop filters” always says “This shortcode requires you to fill in at least on Taxanomy slug to work.” even though I put some slugs in it. Meanwhile I have tried different taxonomy slugs, but it always gives the same message. As result, there is no button displayed in the frontend. Besides, it does not work together with “flex loop” what is probably because “flex loop filters” does not work.
The documentation was not very helpful for me: https://forum.tagdiv.com/filters-sorting-taxonomies/
Could someone help me with this?
Regards
Nelly
Hi,
Both of them cna be used; the only difference between posts loop and posts loop 2 is in design/layout. In the rest, both elements have the same functionalities.
All about those 2 posts loop elements can be seen in our guide form here: https://forum.tagdiv.com/posts-loop/
Hi,
That element is a posts loop (https://prnt.sc/JkGvT-YJ4lwx), and it’s a special element different from the rest of the blocks. This one has an automatic filter—there are no manual filters like on the other elements. So, if you want a filter that you can set yourself, you’ll need to use a Flex Block 1, which can be configured for the exact layout you want.
I’ve just set up the Flex Block 1 for you. You can check it and set the filters as you need.
Hi,
Please edit the Search template using tagDiv Composer -> https://i.imgur.com/9zcjlvq.png -> https://i.imgur.com/3ahOyy2.png
Select the Posts Loop element and check the General tab to see if an offset value is set.
If there is an offset number, remove it and leave the field empty.
Save the changes, clear the cache, and the problem should be resolved.
Hi,
1. When you set a image/banner, make sure that you do not set a thumb and you set the full image – https://prnt.sc/Q1o1_k2xjxWZ
2. This situation is usually related to teh offset from the posts loop element, so, please edit it with tagDiv Composer like this – https://i.imgur.com/yVdPa3f.png select the posts loop element and remove the offset number, after that the posts from that category would be displayed – https://i.imgur.com/cIsacyO.png
3. The footer logo should be set like this to be centered – https://prnt.sc/SQR8fngSORPJ logo should not be inline.
4. For the social counter, make sure that the social API’s are set in the theme panel – https://prnt.sc/rxdFFuu7QBPA – https://prnt.sc/YbExQPok_eHk
5. Check if you have the api key for the weather is set and if you set Nice as the location – https://prnt.sc/Y9mG8aOIwkGq – https://forum.tagdiv.com/weather-widget/
Thanks
Hi,
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
On flex blocks, just make sure that you select teh current category filter https://forum.tagdiv.com/flex-block-settings-guide/ if you are using a posts loop element, this will automatically filter the results based on the template.
Thank you!
I see, unfortunately, we do not have an album element, but maybe you can use something like a Gallery? If so, then it can be achieved by using the gallery option from the posts settings – https://prnt.sc/jq6pfLAm9FAi, then on the single post template edit with tagDiv Composer and add the gallery element – https://prnt.sc/QBFucMiOvJ0i – https://prnt.sc/Poh4o7S-EFkP – https://prnt.sc/-eEtWwX6aJUY
Now, the next step is to create a module that will display the gallery in flex block builder, similar as on single post template in the module, add the gallery element and set it as you like to be displayed https://prnt.sc/E1gZ2eVeOX-y
Please advise if it is possible to modify the posts loop widget so that it displays the post subtitle instead of the excerpt.
Hi,
Please edit the Search template using tagDiv Composer. https://i.imgur.com/9zcjlvq.png https://i.imgur.com/3ahOyy2.png
Select the Posts Loop element and check the General tab to see if an offset value is set.
If there is an offset number, remove it and leave the field empty.
Save the changes, clear the cache, and the problem should be resolved.
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?
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,
If I’m right, this https://i47.servimg.com/u/f47/19/63/31/70/screen10.png is the category, please edit it with tagDiv Composer like this – https://i.imgur.com/yVdPa3f.png select the posts loop element and remove the offset number, after that the posts from that category would be disply – https://i.imgur.com/cIsacyO.png
Hi,
The Posts Loop is a special element that has an automatic filter to display articles related to the template where it is set. For example, if it is on a category page, it will automatically display articles from that category. If it is set on a regular page, it will display all articles sorted by latest.
Also, you could check the offset option in the Posts Loop. This should be empty so that no articles are skipped.
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!
Got it thanks. By the way, how come sometimes when I use the Posts Loop 2 inside e.g. a category template, /page/2/ shows up empty?
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
It seems to be an issue with the “Posts Loop Block” with a class of “td-flex-home-cat” specifically.
I use the Posts Loop to build the homepage articles. How can I make the articles pinned to the top in the background take effect?
img1:http://p.imlol.cn/image/ScreenShot-2026-01-01-193943-456.eAr
img2:http://p.imlol.cn/image/ScreenShot-2026-01-01-194014-278.eEH
Hello, so I am trying to replay to everything with video 🙂
1-2. I made some changes but I think this is because I cant import this https://demo.tagdiv.com/newspaper_doctors_pro/tdcpt_doctors/herman-rehema/
https://screenrec.com/share/8UfBmrjzCt
3. Footer – fixed it is working. Thanks for that https://dviraciukultura.lt/ 🙂
4. Thanks for helping I find how to make this right but I need to understand other things what I mentioning in the video https://screenrec.com/share/5Qzn0Zp23C and othet thing I didint understand how this I can use as listings? Or Posts=Listing, Variations=Categories, Events=? https://screenrec.com/share/YMg8iRp3sX
5. anyway I still cant display categories in Flex Loop https://screenrec.com/share/GohSC1cDgs
Looking forward
flex loop builder does not find posts on the search page.
the post loop block finds.
and the second question is about categories. We have an acf field for categories. show_category is a boolean field.
is it possible to output only those categories that have true in this field?
and third, is it possible to create conditions with flex loop builder, for example, if a post has an acf field and we output something (again, there is just a boolean value in the field, and we just need to output text).
is it possible to insert custom shortcodes from flex loop builder, the ones that we created