To display the number of entries that have been submitted for a form, we will create a reusable shortcode. Add the following code to your theme functions.php file (or create a plugin for it).
You can then use the the shortcode as shown below in any shortcode-enabled area (for example in any post or page content or within the content of an HTML form element).
- Replace the number
1with the form ID