Title: Count Field
Last modified: July 13, 2018

---

# Count Field

 *  Resolved [bajan4evr2](https://wordpress.org/support/users/bajan4evr2/)
 * (@bajan4evr2)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/count-field/)
 * I would like to create a simple field that list the total number of people in
   the database. How do I do that? For example, If I use “1” that person is counted.
   If zero or blank, then that person is not included in the final total. Thanks

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Roland Barker](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/count-field/#post-10492121)
 * Check out the [pdb_total] shortcode…
 * [https://xnau.com/using-the-participants-database-plugin/#total](https://xnau.com/using-the-participants-database-plugin/#total)
 *  [pixalab](https://wordpress.org/support/users/pixalab/)
 * (@pixalab)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/count-field/#post-10495718)
 * Great. What if I wanted a record count over a period of time? How can I do? Thanks
   to the availability.
 *  Plugin Author [Roland Barker](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/count-field/#post-10496286)
 * The pdb_total shortcode can use the same “filter” attribute values as the list
   shortcode, and so if you used the filter to specify a time span, it would show
   all the new records created during that span, or all the new records created 
   before a certain date, etc…
 * [List Shortcode Filters](https://xnau.com/work/wordpress-plugins/participants-database/participants-database-documentation/list-shortcode-filters/)
 *  [pixalab](https://wordpress.org/support/users/pixalab/)
 * (@pixalab)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/count-field/#post-10524467)
 * Thanks to the availability. I am using this code
 * Officina Fabbro ha attivato [pdb_total filter = “workshop = blacksmith” filter
   = “activation_date> -1_months & amp; date_atting & lt; current_month”] tessere.
 * to get the number of registered records of type officina = fabbro in the previous
   month, but I do not get the correct number. Where am I doing wrong? What code
   should I enter? Thank you
 *  Plugin Author [Roland Barker](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/count-field/#post-10524965)
 * Refer the page I linked to above for the details. You can only have one filter
   per shortcode, so you have to chain them all together.
 * [List Shortcode Filters](https://xnau.com/work/wordpress-plugins/participants-database/participants-database-documentation/list-shortcode-filters/)
 *  [pixalab](https://wordpress.org/support/users/pixalab/)
 * (@pixalab)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/count-field/#post-10525430)
 * Good morning and thank you. I think I have solved with this code. Super thank
   you
 * Officina Fabbro ha creato [pdb_total filter=”data_attivazione>-1_months&data_attivazione
   <current_month&officina=fabbro”] Tessere

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Count Field’ is closed to new replies.

 * ![](https://ps.w.org/participants-database/assets/icon-256x256.jpg?rev=1389807)
 * [Participants Database](https://wordpress.org/plugins/participants-database/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/participants-database/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/participants-database/)
 * [Active Topics](https://wordpress.org/support/plugin/participants-database/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/participants-database/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/participants-database/reviews/)

## Tags

 * [count](https://wordpress.org/support/topic-tag/count/)
 * [date](https://wordpress.org/support/topic-tag/date/)

 * 6 replies
 * 3 participants
 * Last reply from: [pixalab](https://wordpress.org/support/users/pixalab/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/count-field/#post-10525430)
 * Status: resolved