post-page

Updated Post Counter and Top 10 Posts for WordPress available

3
responses
by
 
on
February 23rd, 2004
in
WordPress Hack

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.

heading
heading
3
Responses

 

Comments

  1. Poonam Bhatia (10 comments.) says:

    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:

  2. Dylan (1 comments.) says:

    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 ?

  3. G says:

    ## 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



Obviously Powered by WordPress. © 2003-2013

page counter
css.php