Title: Short Code for &#8220;This Year&#8221;
Last modified: April 10, 2023

---

# Short Code for “This Year”

 *  [tosborne](https://wordpress.org/support/users/tosborne/)
 * (@tosborne)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/short-code-for-this-year/)
 * I have tried about every variation of values for the time= shortcode to say “
   Show stats since January 1st of this year”, but it never works. I either get 
   all 0’s, or numbers for the entire dataset. For instance
 * [wpstatistics stat=pagevisits time=2023 id=2220]
 * I would expect to show me page visits to page ID 2220 since January 1, 2023, 
   but it doesn’t. What value can I put in there to limit the scope to this year,
   since January 1st, not 1 year worth of data? Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Reza](https://wordpress.org/support/users/reventon94/)
 * (@reventon94)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/short-code-for-this-year/#post-16644384)
 * Dear [@tosborne](https://wordpress.org/support/users/tosborne/) ,
 * I hope this message finds you in good health. Thank you for contacting us.
 * To obtain precise guidance on how to use WP Statistics shortcodes, we recommend
   referring to the following article in our documentation:
 * [https://wp-statistics.com/resources/shortcodes](https://wp-statistics.com/resources/shortcodes)
 * If you require further information or have any queries, please do not hesitate
   to contact me.
 * Best regards.
 *  Thread Starter [tosborne](https://wordpress.org/support/users/tosborne/)
 * (@tosborne)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/short-code-for-this-year/#post-16644931)
 * Thanks. I am familiar with that doc, but it doesn’t answer my question. What 
   can be used for the time= parameter to mean “since January 1st of this year”?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Short Code for “This Year”’ is closed to new replies.

 * ![](https://ps.w.org/wp-statistics/assets/icon.svg?rev=3081064)
 * [WP Statistics – Simple, privacy-friendly Google Analytics alternative](https://wordpress.org/plugins/wp-statistics/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-statistics/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-statistics/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-statistics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-statistics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-statistics/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [tosborne](https://wordpress.org/support/users/tosborne/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/short-code-for-this-year/#post-16644931)
 * Status: not resolved