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: query_posts('r_sortby=most_rated&r_orderby=desc')  (Read 2403 times)

0 Members and 1 Guest are viewing this topic.

Offline Steker

  • Newbie
  • *
  • Posts: 19
    • View Profile
query_posts('r_sortby=most_rated&r_orderby=desc')
« on: 22 August 2008, 13:47 »
I'm trying to use this function.

I created a custom template (a copy of my index page) including this query_posts instead of the "date-sorted list".
Then i created a page called: most-votes.
so when i go on this page (http:/:www.mysite.com/most-votes/), it displays the 20 most rated posts.

Then, when i click on: "previous entries", it opens a page (http:/:www.mysite.com/most-votes/page/2/), but this page displays the same 20 posts as previous page... It should display posts 21 to 40...

Is there any way i can make this work ?

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: query_posts('r_sortby=most_rated&r_orderby=desc')
« Reply #1 on: 22 August 2008, 14:50 »
you need to pass in a paged argument as by default it is always page 1. Do a search for it

++ 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 Steker

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: query_posts('r_sortby=most_rated&r_orderby=desc')
« Reply #2 on: 22 August 2008, 16:44 »
Im sorry but i cant find a way to make that work :/
Maybe you have little time to help me with that...
I guess im not the only one needing to sort the posts with your plugin in a several-pages-list...

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: query_posts('r_sortby=most_rated&r_orderby=desc')
« Reply #3 on: 22 August 2008, 16:46 »
sorry but I do not have the time to update my plugin let alone help you.

Here is a tutorial to get you started http://codex.wordpress.org/Template_Tags/query_posts

++ 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 Steker

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: query_posts('r_sortby=most_rated&r_orderby=desc')
« Reply #4 on: 22 August 2008, 16:54 »
i just checked the page, and the 'paged' option, does it mean i have to create a new page for each 'paged' like most-rated page 1, most-rated page 2,... or is there a way to make it dynamic ?

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: query_posts('r_sortby=most_rated&r_orderby=desc')
« Reply #5 on: 23 August 2008, 04:43 »
Code: [Select]
$paged = intval(get_query_var('paged'));
query_posts('r_sortby=most_rated&r_orderby=desc&paged='.$paged)

++ 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 sudesh

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: query_posts('r_sortby=most_rated&r_orderby=desc')
« Reply #6 on: 03 September 2008, 09:10 »
Hi Gamerz,

i want to do the same thing as steker, but i want to know how can i have my url like http:/:www.mysite.com/most-votes/, i tried my site it won't work, it shows 404 page error.

I know i should have gone to wordpress forum, that i did, but i didn't got any reply seems a very idiotic question, but still i you can help it would be great.

Or atleast please provide link where i can find a solution.

Thanks

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
« Last Edit: 03 September 2008, 11:40 by GaMerZ »

++ 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 sudesh

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: query_posts('r_sortby=most_rated&r_orderby=desc')
« Reply #8 on: 04 September 2008, 04:29 »
Thanks Gamerz

Its done

it was a idiotic question i asked

anyway thanks for your prompt reply

sudesh

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: query_posts('r_sortby=most_rated&r_orderby=desc')
« Reply #9 on: 04 September 2008, 04:46 »
No worries =) I also learned it from that link.

++ 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.