• Resolved monika21

    (@monika21)


    I would also like to display the Current Page Data in the widget. Are there any shortcodes for this? For hits in the last 30 pages for the current page, for example?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Matthew

    (@mhdizmni)

    Hi @monika21,

    Thank you for opening the thread!

    Yes, it is definitely possible to display various statistics using WP Statistics’ shortcodes within posts, pages, and HTML widgets.

    For more details, please refer to our comprehensive guide available at https://wp-statistics.com/resources/shortcodes/ to learn more about the shortcode format and how you can use them effectively.

    Regards

    Thread Starter monika21

    (@monika21)

    If I add [wpstatistics stat=visits time=month] to a widget, I only get the visits from the complete blog.

    But I need them from the current page. I can’t find anything about this in the shortcodes. I usually only have the ID as a parameter, but that doesn’t help because it always changes.

    Plugin Support Matthew

    (@mhdizmni)

    Hi @monika21,

    In order to show the visits for each post or page, you can use the following shortcode:

    [wpstatistics time=month stat=pagevisits]

    You do not need to pass the page ID if you plan to show the data dynamically, as it will automatically detect the current page’s ID.

    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.