• I was using this variable discretely in the footer of our theme to see the total unique pages views for each page of our technical web log. Now after updating WordPress and StatPress Visitors to the latest releases instead of producing a number this command just prints %thistotalpageviews% on the page. Obviously this is not what I want. How do I now get a total for unique views of each page? Thank you.

    Edit: for now I have just placed PHP comment marks around this code in hopes you can provide a quick solution.

    https://www.ads-software.com/extend/plugins/statpress-visitors/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author luciole135

    (@luciole135)

    If you use it in the footer, you must use the function StatPress_Print().
    You can use the variable in the widget.

    Thread Starter eracc

    (@eracc)

    Yes, I know about the StatPress_Print() function and do use it. Here are the relevant lines from the footer (of course the StatPress_Print line is still commented out at this point.)

    <?php /* Remove this line and the next line if StatPress is uninstalled */ ?>
    <?php /* StatPress_Print("%thistotalpageviews%"); /* ?>

    Let me know what else you need to fix this. Thanks for the quick response.

    Thread Starter eracc

    (@eracc)

    FYI, I tried just placing %thistotalpageviews% in the statpressV widget and it still does not work. The widget just prints the string %thistotalpageviews%, not a number. Has this variable been removed? If so, how do I now get a total for unique views of each page?

    Thread Starter eracc

    (@eracc)

    Argh! The %thistotalpages% variable does not work either…

    Edit: nor does %thistodaypageview% … ??

    Plugin Author luciole135

    (@luciole135)

    Hi,
    I am awfully sorry. I delete it by mistake. I have too much many ‘Visitors’ files on my computer.
    Tell me exactly all the variables you want and today I publish a version with them.
    My apologize

    Thread Starter eracc

    (@eracc)

    Ah, that would explain it then. No problem. Maybe you need local revision control? ??

    The only ones I use explicitly are the ones I mentioned here:

    • %thistotalpageviews%
    • %thistotalpages%
    • %thistodaypageview%

    But the one I most rely on most is the unique visitors per page in my footer with %thistotalpageviews%.

    Plugin Author luciole135

    (@luciole135)

    You can find the the new variable in 1.3.1

    Thread Starter eracc

    (@eracc)

    That did it. Thank you!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: Statpress Visitors] StatPress_Print("%thistotalpageviews%") no longer works’ is closed to new replies.