Skip Navigation

[Resolved] Simple Way To Display The Number Of Posts

This thread is resolved. Here is a description of the problem and solution.

Problem:
The issue here is that the customer wanted to display the number of items that his view found.

Solution:
The solution is that you can use the [wpv-found-count] shortcode to do this

Relevant Documentation:

The documentation related to this can be seen in the link below.
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-found-count

This support ticket is created 6 years, 11 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 2 replies, has 2 voices.

Last updated by Ed 6 years, 11 months ago.

Assisted by: Shane.

Author
Posts
#594039

Ed

I'm looking for the simplest way to display the total number of "Domains" (custom post type).

I've created a CPT of "Domains". I just need to know how to show how many Domains are available (published).

I don't want to use taxonomies.

#594111

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ed,

Thank you for contacting our support forum.

Are you using a view to display the posts ? If not or if you are you can just create an empty view and then just use this shortcode.
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-found-count

Please let me know if this helps.
Thanks,
Shane

#594134

Ed

Thanks, Shane. I just slipped that shortcode into the view, like so:

[wpv-items-found]
There are currently [wpv-items-count] domain names available for purchase.<br /><br />
<!-- wpv-loop-start -->

I knew it was simple, but I couldn't figure it out. Thanks, again.