I've created a page (https://media.naifa.org/press-releases) to show all the posts, which come under the tag name 'press release' in 6 blogs, using a custom module (Screenshot attached).
There are almost 6 blogs selected for listing. And all the blogs with the tag name 'press-release' are listed except for a few blog-post under the advisor today blog. When we checked the Press Release tag listing page (https://media.naifa.org/press-releases) inside Advisory Blog, 11 pages are found. But only posts up to the 10th page are showing on the Press Release page. Those posts on the 11th page are not showing (https://at.naifa.org/tag/press-release/page/11).
Marked blogs are not showing on the press-release page.
I do not fully understand what you are trying to do but this sounds to me, that your
blog_recent_tag_posts()
is causing this issue.
Referring to the docs (https://developers.hubspot.com/docs/cms/hubl/functions), this function is limited to exact 200 posts and 10 calls per page. You set the limit to 10000 but its highest limit is 200. Unfortunately I don't see a quick fix for that. Hope this helps anyway a bit... Let me know!
The logic in your code might be okay but you might not have as many blogs as expected. I suggest you debugging the process. I would do the following:
- Print the size of each blog_x_posts using the length filter.
- Print the size of the all_posts variable using the same filter.
If both variables are correct and make sense, then the issue might be on the content side. Did you check that all blogs inside Advisory Blog are properly tagged? Do you have duplicated tags maybe?
Also, keep in mind @FabianRichter comment about the blog_recent_tag_posts() limit 🙂
I do not fully understand what you are trying to do but this sounds to me, that your
blog_recent_tag_posts()
is causing this issue.
Referring to the docs (https://developers.hubspot.com/docs/cms/hubl/functions), this function is limited to exact 200 posts and 10 calls per page. You set the limit to 10000 but its highest limit is 200. Unfortunately I don't see a quick fix for that. Hope this helps anyway a bit... Let me know!