WordPress.org

Forums

WordPress Popular Posts
[resolved] Use buttons to interactive display different options (4 posts)

  1. gabu69
    Member
    Posted 11 months ago #

    Is it possible to do this?

    Put a "Most popular page" with the options to
    1) Click a button to display the most popular posts:
    - day, week, month, year, all time
    2) Have a dropdown menu set by defaul to all the categories but as well to display the most popular posts individually by category?

    So an interactive page where a visitor just clciks the date range and could as well check by category the most viewed?

    https://wordpress.org/plugins/wordpress-popular-posts/

  2. Héctor Cabrera
    Member
    Plugin Author

    Posted 11 months ago #

    Hi gabu69,

    1) Click a button to display the most popular posts:
    - day, week, month, year, all time

    You could probably use some Javascript / jQuery scripts for this (for example: A method for adding jQuery UI tabs into WordPress). Create a new page template for your theme with this functionality and use the wpp_get_mostpopular() template tag to retrieve different time ranges for each tab.

    2) Have a dropdown menu set by defaul to all the categories but as well to display the most popular posts individually by category?

    This is possible as well, since the plugin itself uses AJAX to display the posts. However, it's not a trivial task and right now I can't think of a simple solution for this.

  3. gabu69
    Member
    Posted 11 months ago #

    Ic

    thanks a lot for the super fast response sir :)

    Functions like this would be super handy, to have lets say in a normal blog like a page section for a hall of fame they can enter, reducing even more the bounce rate in some cases for those addictive readers that want to find the best content

    any ideas in the future to add functions like this to use simply with a shortcode?

    thanks a lot sir

  4. Héctor Cabrera
    Member
    Plugin Author

    Posted 11 months ago #

    The main objective of WordPress Popular Posts is to be a flexible plugin, easy to use for the majority. The same principle applies to its shortcode: it must be a "fire-and-forget" kind of thing. Actually, the wpp shortcode already does what you said:

    ... a hall of fame they can enter, reducing even more the bounce rate in some cases for those addictive readers that want to find the best content.

    While I like your idea, it won't be implemented for the very same reason stated at the first paragraph of this long comment: it would make the shortcode unnecessarily complex, and I prefer keeping things simple for everyone.

    I could help you with your first request, though, since it's not that difficult to implement. The second one, however, is a different story.

Reply

You must log in to post.

About this Plugin

  • WordPress Popular Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.