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-Sticky 1.40 - Problem with sort with WP_Query on WP 2.7.1  (Read 1642 times)

0 Members and 1 Guest are viewing this topic.

Offline rayd

  • Newbie
  • *
  • Posts: 2
    • View Profile
Wordpress: 2.7.1
WP-Sticky: 1.40
Theme: RevolutionTwo - Church Theme
Blog URL: www.calvarybradenton.org
PHP: 5.2.8
MYSQL: 5.0.67-community

To the problem... when the WP-Sticky 1.40 plugin is activated on my site, I lose the ability to use WP_Query with the "order" function. The code I am using is below. It works perfectly fine when WP-Sticky is deactivate (as it is now on my blog). Check out my site and look at the bottom of the page. The section with heading "This Weeks Refuge" sorts ascending as desired. As soon as I activate WP-Sticky it no longer sorts ascending. Goes back to default. I have fought with this and rewrote the query several different ways - to no avail. Somehow WP-Sticky appears to be causing this problem. I isolated WP-Sticky by deactivating all other plugins. I can easily duplicate the problem by turning on and off WP-Sticky.

Thanks for any help you my be able to give.

Ray


------------------------
<?php $my_query = new WP_Query('category_name=events&order=ASC');?>
 
<?php if ($my_query->have_posts()) : while ($my_query->have_posts()) : $my_query->the_post();
   $do_not_duplicate = $post->ID;
?>
-------------------------




Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Wp-Sticky 1.40 - Problem with sort with WP_Qeuery on WP 2.7.1
« Reply #1 on: 17 February 2009, 15:34 »
Yes, WP-Sticky will not work ascending/descending order with WP_Query. You might want to use the default sticky feature instead.

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

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Wp-Sticky 1.40 - Problem with sort with WP_Query on WP 2.7.1
« Reply #2 on: 17 February 2009, 15:59 »
Thanks Lester for confirming.

The problem with using default WP 2.7 sticky is that it does not accommodate sticky's in category archive. I have been searching for a way to do that and WP-Sticky plugin is the only way that I have found.

Any ideas - or am I just out of luck?

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Wp-Sticky 1.40 - Problem with sort with WP_Query on WP 2.7.1
« Reply #3 on: 17 February 2009, 16:07 »
i guess you are out of luck as this is a conflict with the query, there is no way to make it play nice with the ordering.

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