All Good Things Must Come To An End

As you all know, I have been doing WordPress plugins and supporting it for the past 6 years. These 6 years of my life, I have been through my polytechnic education, my national service as well as my university education.

I just graduated from university in December 2009 and have been looking for full-time jobs. I am offered a full-time job and will be starting work on 1st February 2010.

I regret to say that I am NOT ABLE to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

However, I WILL still update my plugins whenever I can and you still can report bugs to me via email and I will try to fix it.


Author Topic: WP-PostRatings and SubCategories  (Read 4031 times)

0 Members and 1 Guest are viewing this topic.

Offline Jalo

  • Newbie
  • *
  • Posts: 5
    • View Profile
WP-PostRatings and SubCategories
« on: 18 August 2008, 09:36 »
Hi all,

I use the latest version of WP-PostRatings & Worspress and would like to sort posts by rating on the subcategories pages.
Messages are posted in a category and a subcategory.
Now when I open the subcategories page it shows all the posts including the posts from other subcategories (total category).

I use this to sort: <?php query_posts('r_sortby=highest_rated&r_orderby=desc') ?>

Is there a way to alter the code so it just shows the posts from the subcategorie?

With kind regards,
Jan
The Netherlands.



Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline Jalo

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: WP-PostRatings and SubCategories
« Reply #2 on: 18 August 2008, 14:52 »
Thank you for your reply. Can you help me out a bit? I don't know much about php.

I created this code:

<?php
 $categoryvariable=$cat;
 $query= 'cat=' . $categoryvariable. '&r_sortby=highest_rated&r_orderby=desc';
 query_posts($query);
 ?>

That show only the rated posts, so I'm close but I can't figure out what to change to show all posts with highest rated on top.

With kind regards,
Jan

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: WP-PostRatings and SubCategories
« Reply #3 on: 18 August 2008, 16:04 »
The code you posted will sort in highest rated in descending order based om the category and so the highest rated post should come first. If it does not, there might be a theme or plugin conflict.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline Jalo

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: WP-PostRatings and SubCategories
« Reply #4 on: 18 August 2008, 17:50 »
I think I know what it is, the other posts haven't been rated yet. I'll try to edit a post and see if it shows up in the subcatgorie. I'll let you know.

Jan

Offline Jalo

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: WP-PostRatings and SubCategories
« Reply #5 on: 18 August 2008, 17:54 »
Yes that's it, after I edit a post it shows up, I don't even have to rate it, just edit the post and it shows up.

Jan

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: WP-PostRatings and SubCategories
« Reply #6 on: 18 August 2008, 17:55 »
After you published the post, and when you edit the post, can u see 3 custom fields by postratings?

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline Jalo

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: WP-PostRatings and SubCategories
« Reply #7 on: 18 August 2008, 18:02 »
Yep the three custom fields are there, I din't check before I edited the post though.

Jan

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: WP-PostRatings and SubCategories
« Reply #8 on: 19 August 2008, 01:23 »
Okie then the sorting should work as the values are 0.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.