Title: PHP function and commannd [&#8230;] doesn&#039;t work
Last modified: August 30, 2016

---

# PHP function and commannd […] doesn't work

 *  [piotroxy](https://wordpress.org/support/users/piotroxy/)
 * (@piotroxy)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/php-function-and-commannd-doesnt-work/)
 * Hi,
    NewStatPress works in the widget on sidebar. But if I add command [NewStatPress:….]
   or PHP function I do not see any statistics.
 * If I add command [NewStatPress: Top Pages] I see on the page only [NewStatPress:
   Top Pages] and any statistics.
 * When I add the PHP function like `<?php NewStatPress_Print( "%totalvisits% total
   visits." ); ?>` nothing changes.
    thanks
 * [https://wordpress.org/plugins/newstatpress/](https://wordpress.org/plugins/newstatpress/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [ice00](https://wordpress.org/support/users/ice00/)
 * (@ice00)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/php-function-and-commannd-doesnt-work/#post-6752897)
 * hi,
 * maybe this is probably due to the same html varibles used for widget and php 
   functions on the same value, so Ajax update only the first it find in the page(
   I’m not sure it is this as I think to have already correct this some months ago).
 * So I need to know if you have the same value in widget and in the PHP that you
   are putting or not.

Viewing 1 replies (of 1 total)

The topic ‘PHP function and commannd […] doesn't work’ 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: [10 years, 5 months ago](https://wordpress.org/support/topic/php-function-and-commannd-doesnt-work/#post-6752897)
 * Status: not resolved