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: Wordpress query_posts('orderby=rand') not working with WP-Sticky  (Read 6906 times)

0 Members and 1 Guest are viewing this topic.

Offline oneside

  • Newbie
  • *
  • Posts: 1
    • View Profile
hi,

iam using WP-Sticky 1.40 and Wordpress 2.7.1.

It seems, that there is a problem with ordering posts using query_posts('orderby=rand'), when WP-Sticky is installed and enabled.  The "orderby"-option is not working with all parameters then and the result will allways show the newest post first.
I found out, that someone has the same problem, he wrote an article about this problem (thanks to him):
http://www.conetrees.com/2009/03/blog/solution-to-query_posts-orderby-rand-not-working-in-wordpress/

Any ideas? thanks!
oneside

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,692
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: lesterchan.net v3.4
Yes that is a technical limitations, it can't be fixed.

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

  • Newbie
  • *
  • Posts: 1
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: skin
I was using <?php query_posts('orderby=rand'); ?> to do the job. The downloads widget on my website was supposed to display one random post from the download section and did so fine on the local server. But on my live site, instead of displaying a random post, it’d simply default to displaying the most recent post. I did all I could and tried everything people suggested until I finally discovered, quite by accident, that it was the WP Sticky plugin that was causing the problem . I disabled the plugin and &rand began to work just fine on my live site! I was able to display random download posts just as I wanted to. So, if you’ve tried everything possible under the sun to randomize your posts using <?php query_posts('orderby=rand'); ?>, and you use WP Sticky, then try disabling the plugin and check whether it makes your randomize post issue disappear. Tennis Shoe