Weekly popular posts
-
Im looking to make my popular post widget on the sidebar take into account the most popular posts on a 7 day range rather than since it’s been installed. How do I do that? My site is goodmusicinc.net
Here is the area of the code the developer said to change, since then he has been no help –
* @param bool $display_popular_icon - Display the popular posts icon. * @param int $popular_icon_size - The size of the popular posts icon. * @param int $popular_amount - The amount of popular posts to display. * @param int $popular_chars - The number of characters to display per post. * @param bool $display_popular_view_count - Display the popular view count. * @param string $popular_tab_post_type - The post type to display the posts for. * */ public function aaw_get_most_viewed_posts($display_popular_icon = true, $popular_icon_size = 50, $popular_amount = 5, $popular_chars = 35, $display_popular_view_count = true, $popular_tab_post_type = 'post') { $post_views = ''; $post_title = ''; $out = ''; $args = array( "posts_per_page" => $popular_amount, "post_type" => $popular_tab_post_type, "post_status" => "publish", "meta_key" => "aaw_views", //'meta_value_num' => '0', "orderby" => "meta_value_num", "order" => "DESC" );[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Weekly popular posts’ is closed to new replies.