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
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.
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!
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/
My issue is resolved now. Thank you!