View unanswered posts | View active topics It is currently 15 Oct 2018 9:44 pm

Starting from 2nd March 2010, free theme support service has been stopped. However, you can still report bugs at here so that they can be fixed.

Thank you.



Post new topic Reply to topic  [ 7 posts ] 
Lunated footer 'popular posts' options 
Author Message

Joined: 02 Feb 2010 7:17 pm
Posts: 6
Location: London
Post Lunated footer 'popular posts' options
hello.
i want to change the criteria of my popular posts from 'comment count' to 'page/post views'.

i tried overwriting 'comment_count' with 'page_view', but it didn't work.
please help.

thank you.


02 Feb 2010 7:24 pm
Profile WWW

Joined: 02 Feb 2010 7:17 pm
Posts: 6
Location: London
Post Lunated 'popular posts'
How can i change the code below to change the critera of my 'popular posts' from comment counts to post views?

$zv_getpopular = mysql_query("SELECT ID, post_title, comment_count FROM $wpdb->posts WHERE post_status = 'publish' AND post_type='post' ORDER BY comment_count DESC LIMIT 5");
while ($zv_popular = mysql_fetch_assoc($zv_getpopular)) {
$popular_permalink = get_permalink($zv_popular['ID']);
echo '<li><table class="popular_table" cellpadding="0" cellspacing="0" border="0"><tr>
<td width="5px" class="popular_l"></td>
<td class="popular_td"><a href="'.$popular_permalink.'#respond">'.number_format($zv_popular['comment_count']).'</a></td>
<td width="5px" class="popular_r"></td>
</tr></table><a href="'.$popular_permalink.'" title="'.number_format($zv_popular['comment_count']).' comments for '.htmlspecialchars($zv_popular['post_title']).'">'.$zv_popular['post_title'].'</a></li>';
}


04 Feb 2010 12:48 am
Profile WWW
Site Admin
User avatar

Joined: 28 Sep 2009 3:07 pm
Posts: 401
Location: Malaysia
Post Re: Lunated footer 'popular posts' options
By default, wordpress does not record the number of page views so you can't do that.

Unless you are using some other plugins to achieve this, which I have no experience which plugin is best for this.

_________________
ZENVERSE - Web Design and Development Blog
MonoShade Premium Wordpress Theme - from $15
Scapemode Premium Photography Wordpress Theme - from $25
Premium Wordpress Themes

Have a nice day and Enjoy your stay!


05 Feb 2010 9:11 am
Profile WWW

Joined: 02 Feb 2010 7:17 pm
Posts: 6
Location: London
Post Re: Lunated footer 'popular posts' options
thanks. google analytics does. any way to use google analytics code for 'top pages'? below is example of info i get from google analytics.

Site Usage

162 Visits 69.75% Bounce Rate
273 Pageviews 00:02:01 Avg. Time on Site
1.69 Pages/Visit 57.41% % New Visits

Top Pages

lolifehilites.com – ROCKS OFF! JAN10 - 24 Views
lolifehilites.com – ROCKS OFF! FEB10 - 22 Views
lolifehilites.com – ROCKS OFF! OCT09 - 9 Views
lolifehilites.com – about - 9 Views
lolifehilites.com – first thursdays JAN10 - 9 Views


05 Feb 2010 8:56 pm
Profile WWW
Site Admin
User avatar

Joined: 28 Sep 2009 3:07 pm
Posts: 401
Location: Malaysia
Post Re: Lunated footer 'popular posts' options
No, i think that is not practical and time wasting (since you need to load from google everytime).

The best solution is to install plugins like Wp PostViews

Check out the guide written by the plugin coder, it shows you how to display Most viewed posts.

_________________
ZENVERSE - Web Design and Development Blog
MonoShade Premium Wordpress Theme - from $15
Scapemode Premium Photography Wordpress Theme - from $25
Premium Wordpress Themes

Have a nice day and Enjoy your stay!


06 Feb 2010 2:52 pm
Profile WWW

Joined: 21 Oct 2011 2:12 pm
Posts: 47
Post zxwn2Tiffany Charm Bracelet hard
10-29 03:53:09 &nbspTiffany Charm Bracelet&nbspNail fungus natural cures is the cheapest and easiest way to get rid of your gross toe problem. What are toenail fungi? Toenail fungus is a disease caused by both yeast and fungus. This fungal disease is a common problem that results in thick, hard&nbspTiffany Bracelets Silver LVE Return To New York Heart&nbsp,taitanh
Related articles :
UGG Boots Cheap
UGG Boots Cheap
UGG Boots Cheap


21 Dec 2011 5:50 pm
Profile

Joined: 26 Dec 2011 8:11 pm
Posts: 1
Post Re: Lunated footer 'popular posts' options
The masses, our the NFL may handled the different needs to effort projectile joint with route to the intention. This resembles along with Rugby, the business familiar pastime carried out greatly interior Nigeria and so Land.In opposition to overmuch earlier events efficient downswing Somebody sport association commerce cycling jerseys became complete for under person, it is not needs the actualized job nowadays. The literal tops can be purchased in that cynic aggregation. Some many, plant in elderly instances typically men of all ages undertaken the see and ladies ended up honorable prospects nonetheless consisting of metamorphose distinct at this abstraction. Whilst, the ladies ordinarily are not allowed to fisticuffs for customers as anti to blokes, you'll react gamy titles in resistance to a difference of ladies categories.


metal roofs


26 Dec 2011 8:47 pm
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron

Party Dresses
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Forum style by Vjacheslav Trushkin for Free Forums/DivisionCore.