How we set per page for custom post type

Hi Friends,

I need add per page custom post type like Portfolios = 12, Teams = 10, Posts = 9.

Now, i have added below code in frontity.setting.js file. but still show in all archive pages 20 posts.

“params”: {
“per_page”: 20,
“type”: [“portfolio”, “teams” ]
},

Can you please help me how we set different per page for custom post type.

Thank you.

Hi @bhagvan.vrinsofts

The params property applies to taxonomies, not to CPTs. If you assign taxonomies to your various CPTs, and even if you just have a single term in each taxonomy so that every post of a certain post type is categorised in the same way, then you can define each taxonomy individually in your frontity.settings.js file. See here for more info.

Hi, All @mburridge

I need add per page custom post type like Portfolios = 13, Teams = 14, Posts = 9.

Now, i have added below code in frontity.setting.js file. but still show in all archive pages 10 posts.

“params”: {
per_page: 10,
type: [“post”, “page”],
},

please Solved this code.

Thanks