Jump to content


These Forums Are Now Read-Only


For TubePress support, please post a question here or open a support ticket and we will be glad to assist.


Photo

does most_viewedValue exist?


  • Please log in to reply
2 replies to this topic

#1 Gregory Fein

Gregory Fein

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 18 September 2011 - 10:45 PM

most_viewed shortcode by itself defaults to "today"
I have searched everywhere for any reference to most_viewedValue by week, month and all time

Its not in the shortcode reference, feature gallery does not demo this, no forum posts discuss this.
the only reference is in Output.class.php
const MOST_VIEWED_VALUE = 'most_viewedValue';

Anyone invoked most_viewed by Week, Month or All-Time and if so.... how?

#2 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 23 September 2011 - 09:09 PM

Hi,

I'm sorry that this particular shortcode attribute is poorly documented. You should be able to supply a timeframe as a value. e.g. to show the most viewed videos for this month

[tubepress mode="most_viewed" most_viewedValue="this_month"]
Where instead of "month" you could also use "today", "this_week", or "all_time". I'll work on documenting this feature better. Please let me know how this works for you. Thanks!

#3 Gregory Fein

Gregory Fein

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 23 September 2011 - 09:40 PM

Rockstar!
Works great....
Just wish the quirky view_count order would settle down but I know that is on your radar.
Thank you sooo much.