ejutv
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
Forum: Themes and Templates
In reply to: [GeneratePress] Mobile Logo Query is SlowHi,
attachment_url_to_postid()
Please look at the image:
Forum: Plugins
In reply to: [Lightweight Social Icons] Whatsapp icon?no whatsapp icon???
Forum: Plugins
In reply to: [W3 Total Cache] [Plugin: W3 Total Cache] Intense debateabout the Purge Policy: i would like to have: “when posts are created, edited, or comments posted” =>=> “posts are created, edited” without comments…
Please, advise me what to do.
Yes, it did work. I will change the cache’s time because I am using this script to call most popular posts in eju.tv’s sidebar:
$start_date = date('Y-m-d', (time() - (60 * 60 * 24 * 1))); $end_date = date('Y-m-d'); $showpages = 25; $thispage = 1; $data = new GADWidgetData(); if($data->auth_type == 'oauth') { $ga = new GALib('oauth', NULL, $data->oauth_token, $data->oauth_secret, $data->account_id); } else { $ga = new GALib('client', $data->auth_token, NULL, NULL, $data->account_id); } $pages = $ga->pages_for_date_period($start_date, $end_date); echo "<ul>"; foreach($pages as $page) { $url = $page['value']; $title = $page['children']['value'];$views2 = $page['children']['name']; $views = $page['children']['children']['ga:pageviews']; $array = array('(not set)'); echo '<li><a href="' . $url . '" rel="nofollow">' . $title . ' - ' . $views . '</a></li>'; $thispage++; }} if($thispage > $showpages) break; } echo "</ul>";
Viewing 5 replies - 1 through 5 (of 5 total)