Support » Plugin: Top 10 - Popular posts plugin for WordPress » Total, Monthly and Daily all in one post

  • unclebobby

    (@unclebobby)


    Hi. How can I display Total, monthly, daily using php? I need all three parameters. Pls help

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ajay

    (@ajay)

    you can set the daily_range parameter if you’re using the shortcode or by passing it to tptn_show_pop_posts()

    Thread Starter unclebobby

    (@unclebobby)

    This displays popular posts. But I need to display the number of views in a post for all time, for a month and for a day

    Thread Starter unclebobby

    (@unclebobby)

    To make it clear here is a screenshot of what I want to do

    • This reply was modified 6 months, 4 weeks ago by unclebobby.
    • This reply was modified 6 months, 4 weeks ago by unclebobby.

    I think top-10 only counts today and overall. There is no option for this month.

    Plugin Author Ajay

    (@ajay)

    Yes that is correct – it’s either today, a custom day range set my daily_range and daily = 1 and all time.

    But, if you’re coding it for your own, you could calculate the number of days in the month dynamically and pass that as daily_range parameter

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Total, Monthly and Daily all in one post’ is closed to new replies.