WordPress.org

Ready to get started?Download WordPress

Forums

NewStatPress
[resolved] Print function not working (2 posts)

  1. shilpahonnalli
    Member
    Posted 1 year ago #

    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/

  2. ice00
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    passed variable must bne only the value to calculate.
    Use this:

    <?php  if (function_exists('NewStatPress_Print')){
    NewStatPress_Print("%totalvisits%");
    } ?>   total visits.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.