2/23/2004 ↓

Updated Post Counter and Top 10 Posts for WordPress available

Author: Mark Ghosh Category: WordPress Hack

Thanks for visiting! We would like to serve you better. Please subscribe to our RSS feed for daily updates. This blog posts regular Wordpress news, updates of themes, plugins, ideas, hacks, quick fixes and everything about blogging, especially about Wordpress. You can also receive updates from this blog via email if you want that method of notification.

As before, this hack lets you count down the top 10 posts in WordPress (any version) but there is now the added feature of being able to display the number of times a single post is clicked on. You can download the instructions for the hack from here. Look below the comments link for each post on this blog to see what this might look like.

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Friends

Translate

Translate to German Translate to Spanish Translate to French Translate to Italian Translate to Portuguese Translate to Japanese Translate to Korean Translate to Russian Translate to Chinese

Latest Videos

3 Comments | Leave a comment | Comments RSS

  1. Hi, I just need some clarification with the first step with the database. It says that you can go into MyphpAdmin and create a table : UsersOnline and then it said to paste the code below

    use wpdatabase;
    create table mostAccessed
    (
    postnumber int not null,
    cntaccess int not null,
    primary key(postnumber),
    unique id(postnumber)
    );

    Well after creating the table it asked me how many number of fields in the table. I was not sure, is that just two? I am also unsure where to paste this code. So if you could just help me a little futher, I would greatly appreciate it. Thank you! :smile:

    [Reply] Poonam Bhatia (10 comments.) — 07/23/2004 @ 3:15 pm
  2. Does any of that (code quted above ) change if/when my “wp_” prefix is different (in the case of having multiple blogs)?

    Can anyone venture to say whether this hack will even work with 1.3 ?

    [Reply] Dylan (1 comments.) — 12/15/2004 @ 3:00 pm
  3. ## HTML INSTRUCTIONS ##

    Open your index.php and find this line:

    I don’t have that line in my theme index.php

    I am running 2.0.3

    where am I suppose to stick that line?
    Thanks!
    G

    [Reply] G — 07/26/2006 @ 7:17 pm

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

(required)

(required, will not be published)


S2