CMS Development

RintoIgnatious
Member

Blog list not showing

SOLVE

Hi all,

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). 

RintoIgnatious_1-1656482410821.png

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. 

screenshot1.jpg

Kindly help me in this regard. 

Thanks in Advance!

0 Upvotes
1 Accepted solution
FabianRichter
Solution
Contributor

Blog list not showing

SOLVE

Hi @RintoIgnatious ,

 

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!

 

Best,
Fabian

View solution in original post

3 Replies 3
albertsg
Guide

Blog list not showing

SOLVE

Hi @RintoIgnatious.

 

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 🙂

 

 



Did my answer help you? Mark it as a solution

You also connect with me on LinkedIn or Twitter

0 Upvotes
FabianRichter
Solution
Contributor

Blog list not showing

SOLVE

Hi @RintoIgnatious ,

 

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!

 

Best,
Fabian

Jaycee_Lewis
Community Manager
Community Manager

Blog list not showing

SOLVE

Hi, @RintoIgnatious 👋 Thanks for reaching out! Let's see if we can get some comments from the community. Hey, @Stephanie-OG @Oezcan @FabianRichter do you have any insight for @RintoIgnatious?

 

Thank you very much! — Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes