WordPress.org

Ready to get started?Download WordPress

Forums

Top 10 - Popular posts plugin for WordPress
[Plugin: Top 10] Pass the top 10 result to a variale (7 posts)

  1. janmalagucute
    Member
    Posted 2 years ago #

    Hi,

    Is it possible to pass the result of the top 10 to a variable like

    $result = echo_tptn_post_count;

    Thanks

    http://wordpress.org/extend/plugins/top-10/

  2. Ajay
    Member
    Plugin Author

    Posted 2 years ago #

    There is no direct method to do this currently. Any reason why you would want this?

  3. janmalagucute
    Member
    Posted 2 years ago #

    I am planning to use your plugin as a counter to my video pages.
    I need to separate the all time views and the daily views like the all time page is on the left bottom of the video player and the daily views is on the right bottom side of the player.

    Currently I just put it under the title of every post but It would look more elegant if the count is at the bottom of my player like in youtube.

    Thanks

  4. Ajay
    Member
    Plugin Author

    Posted 2 years ago #

    I can put this on my to-do list. Alternatively, you can check out the code in top-10-counter.js.php

  5. janmalagucute
    Member
    Posted 2 years ago #

    thanks

  6. janmalagucute
    Member
    Posted 2 years ago #

    How do you generate the numbers?

    Is there a table that saves the last final count or everything is added up and calculated every time you need to view it?

    Thanks

  7. Ajay
    Member
    Plugin Author

    Posted 2 years ago #

    Everything is added up and counted as needed.

    There are two different tables in which the counters are stored wp_tptn and wp_tptn_daily

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags