• Resolved zenial

    (@zenial)


    Hi, wonder to know if it possible somehow to show popular posts for last month or week?

    For example: 1 Feb. – 28 Feb or Monday – Sunday

    Best regards,
    Vardenis

    • This topic was modified 7 years ago by zenial.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi there!

    Possible? Yes, the plugin stores the data you need for this in your database so it is doable. Thing is the plugin doesn’t include such functionality at the moment (it’s not something you can enable by simply ticking some options) so you’d have to hook into WPP to implement it yourself.

    There are a couple of ways to go about it, unfortunately I don’t have any code snippet around I could share with you at this time.

    If you don’t know how to code stuff / don’t have the time for it, I also do freelance from time to time.

    Thread Starter zenial

    (@zenial)

    But if it is possible from the admin panel to show popular posts (inside admin panel) within a custom time range/date range.

    So maybe it is possible to insert shortcode to blog with custom time range too?

    Plugin Author Hector Cabrera

    (@hcabrera)

    To implement the chart functionality I hooked into WPP to obtain the data and the rest of the work was mostly parsing it so the chart could read it and display it.

    A custom shortcode that provides a similar functionality can be done as well. As I already mentioned, the data is there:

    1. Pull it from the database somehow (like I did to create the chart feature).
    2. Integrate it with the logic of your custom shortcode to build the list of posts.
    3. Have your shortcode return the list of posts for display.

    TLDR;

    Possible? Yes, the plugin stores the data you need for this in your database so it is doable. Thing is the plugin doesn’t include such functionality (…) so you’d have to hook into WPP to implement it yourself.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Marking as resolved due to inactivity.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Popular posts last month, last week’ is closed to new replies.