Title: Print function not working
Last modified: August 20, 2016

---

# Print function not working

 *  Resolved [shilpahonnalli](https://wordpress.org/support/users/shilpahonnalli/)
 * (@shilpahonnalli)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/print-function-not-working/)
 * Hi,
 *  I have to display visitors stats in my home page as well as in a different page.
   I tried the php code as specified in the readme.txt but its not working. I m 
   writing same code below:
 *     ```
       if (function_exists('NewStatPress_Print')) {
       NewStatPress_Print("%totalvisits% total visits.");
       }
       ```
   
 * [http://wordpress.org/extend/plugins/newstatpress/](http://wordpress.org/extend/plugins/newstatpress/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [ice00](https://wordpress.org/support/users/ice00/)
 * (@ice00)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/print-function-not-working/#post-3314218)
 * Hi,
 * passed variable must bne only the value to calculate.
    Use this:
 *     ```
       <?php  if (function_exists('NewStatPress_Print')){
       NewStatPress_Print("%totalvisits%");
       } ?>   total visits.
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Print function not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/newstatpress.svg)
 * [NewStatPress](https://wordpress.org/plugins/newstatpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/newstatpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/newstatpress/)
 * [Active Topics](https://wordpress.org/support/plugin/newstatpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/newstatpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/newstatpress/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [ice00](https://wordpress.org/support/users/ice00/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/print-function-not-working/#post-3314218)
 * Status: resolved