Skip Navigation

[Resolved] how to show the number of total posts in Views page for my CPT?

This support ticket is created 4 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by ben 4 years, 3 months ago.

Assisted by: Minesh.

Author
Posts
#1425309

ben

I am trying to show the total number of my CPT in the Views page. I did some google, but it seems I don't see any good solutions, but maybe I didn't search it correctly.

In short, I create a CPT, and I can show all the CPTs using Views, and let's say I have 100 posts created, and I just want to add something like:

There are [100] posts!

I just don't know how to make that happen.

Thanks,
Ben

#1425723

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

You can use the view's shortcode [wpv-found-count] in order to display total number of posts found by the view.

For example:

There are ([wpv-found-count])   posts!

More info:
=> https://toolset.com/documentation/user-guides/views/views-shortcodes/#wpv-found-count

#1432115

ben

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.