Skip Navigation

[Resolved] How would I get a count of the number of program locations

This support ticket is created 5 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
- 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 2 replies, has 2 voices.

Last updated by maxfieldB 5 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#1357461

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!

#1357489

Hello,

How do you setup the custom post field "program locations"?
Same as previous thread, you can create another post view:
- Query posts of your custom post type "k-12-program"
- with a field filter on "program locations", see our document:
https://toolset.com/documentation/user-guides/filtering-views-by-custom-fields/

- In section "Loop Editor", insider shortcode [wpv-items-found] ... [/wpv-items-found], display shortcode [wpv-found-count]

#1358339

Thanks! I believe this will work for our needs, I appreciate the help!