Skip Navigation

[Resolved] Ability to create "mega metrics"

This support ticket is created 5 years, 1 month 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 4 replies, has 2 voices.

Last updated by maxfieldB 5 years, 1 month ago.

Assisted by: Luo Yang.

Author
Posts
#1356627
Screen Shot 2019-10-06 at 11.58.13 PM.png

Tell us what you are trying to do?
I am trying to create a row of numbers that reflect the totals of my entire database. Is there a way to create this? I have attached a photo.

Is there any documentation that you are following?
No.

Is there a similar example that we can see?
Please see my example. Ideally these numbers would be dynamic and update as new entries are added.

What is the link to your site?
battstaging2.com

#1356769

Hello,

It is possible with shortcode [wpv-found-count].

For example, you can try these:
Create a new post view:
- Query posts of your custom post type "k-12-program"
- without any filters,
- In section "Loop Editor", insider shortcode [wpv-items-found] ... [/wpv-items-found], display above shortcode, like this:

[wpv-items-found] [wpv-found-count] [/wpv-items-found]

Then use display above post view as the "totals of my entire database".

More help:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-items-found
Displays the total number of posts, users or taxonomies that have been found by the Views query.

#1357323

Thank you,

This is starting to work. You can see that it worked for "post count" below:

hidden link

One question - how do I count things besides the number of posts? For example, I have a special custom post field called "program locations" - how would I get a count of the number of program locations, that have been entered system wide?

Thank you!

New threads created by Luo Yang and linked to this one are listed below:

https://toolset.com/forums/topic/how-would-i-get-a-count-of-the-number-of-program-locations/

#1357463

I assume the original question of this thread is resolved, for the new question, please check the new thread here:
https://toolset.com/forums/topic/how-would-i-get-a-count-of-the-number-of-program-locations/

#1358341

My issue is resolved now. Thank you!