• Resolved nthnlsmmrs

    (@nthnlsmmrs)


    Alright, I’ve got a strange issue. I’m using WP-Post-Ratings 1.3 and for some strange reason when I try to display the top 5 rated posts for category #23 it shows the one lowest rated post in category 6. I know that doesn’t make any sense at all.

    The only thing I can think of is that the ratings system has issues with double digit category id’s.

    If there is any way that anyone knows how to compress the category ID #’s then I can try that. My #’s are all over the dang place. They seem like they started off going up in a logical manner, then they just started jumping.

    Heck, even if I have to get into the database and manually adjust the category #’s, I’ll do it.

    Any advice/suggestions would be greatly appreciated.

Viewing 1 replies (of 1 total)
  • Thread Starter nthnlsmmrs

    (@nthnlsmmrs)

    I figured it out. In wordpress 2.3 categories aren’t the same as they used to be. They share an ID system with the posts… but not really. Apparently they have two ID’s, one that they show, and one based on the order it was created.

    The issue involves creating/deleting categories, as well as making posts between category creation. For me, this meant that when I made a call to category #23, it pulled up the post with ID #23.

    I had to go into my database and actually look up the ID manually, which happened to be 24. It’s annoying because I use code dependent upon the cat_ID. Now, I have to include “+($cat->cat_ID == 23)” to that part of the code so that it adds one in the case that a person views that category page.

    So, I suppose the problem is resolved, but wordpress still has a problem with cat_ID.

Viewing 1 replies (of 1 total)
  • The topic ‘Error with Top rated by category’ is closed to new replies.