WordPress.org

Ready to get started?Download WordPress

Forums

AStickyPostOrderER
[resolved] Not working after update to WordPress 3.1. (32 posts)

  1. Max Bond
    Member
    Posted 3 years ago #

    Here is temporary unofficial fix
    With it help you can reanimate AStickyPostOrderER.

    Not all problems are fixed yet, only the main ones...

  2. Frettsy
    Member
    Posted 3 years ago #

    ty for the quick patch, this works. hope it gets updated officially soon :)

  3. Bob333
    Member
    Posted 3 years ago #

    Thx man for "reanimate" it

  4. Max Bond
    Member
    Posted 3 years ago #

    I have fixed a few more erros.
    New version of the patch you can download here: http://www.q2w3.ru/2011/02/25/3234/
    Please note - this patch working only on WP version 3.1 and newer. Do not try to install it on older versions!

  5. tostaki1
    Member
    Posted 3 years ago #

    It doesn't fix my bug. I can't display correctly the other loops of my homepages. In any tag or any category i want to display, it display only the posts i have selected in my homepage.

    For example, when i want to display the entire content of my tag "immo" in the date order, it display the only posts which are ranked in homepage, not all the post of tag "immo".

    <?php query_posts('orderby=date&tag=immo&showposts=4');while (have_posts()) : the_post() ; ?>

    Is it a common bug?

  6. Max Bond
    Member
    Posted 3 years ago #

    tostaki1, sorry, but I didn't understand what are you doing... Can you make screenshots?

  7. tostaki1
    Member
    Posted 3 years ago #

    In fact, I have two categories of news in my website. The first category is the important news, which is the main content of my website. It's typically a loop of many posts that I control with astickypostorder. But in my sidebar, I have a second category of news 'the short news' (called with the tag immo in my code).

    <?php query_posts('tag=immo&showposts=4');while (have_posts()) : the_post() ; ?>

    This code aimed to display the short news in the date of their creation. Until now, these short news could be ranked in the two categories (sidebar + main content) when I decided it was a short but important news. Until the 3.1 update, the main content order was controlled by astickypostorder, and the 'short news content' was displayed in the order of the creation of the post.

    But when I have updated WordPress to 3.1, AstickyPostOrder has bugged (there was no post proposed for ranking). First, I decided to reinstall 0.3 version of the plugin and delete the wp_croer table and wp_croer_meta in my sql table. It has worked for the main content, but in my short news category displayed in sidebar, all the news tagged immo and ranked too in the main content were displayed first.

    I add a orderby=date in my code

    <?php query_posts('orderby=date&tag=immo&showposts=4');while (have_posts()) : the_post() ; ?>

    But it doesn't worked too... In the same time, when I go in the tag 'immo' in the Astickypostorder menu, there are no content ranked at all in this section.

  8. Max Bond
    Member
    Posted 3 years ago #

    tostaki1!
    Look what I found in query_posts function description:

    The query_posts() function is intended to be used to modify the main page loop only. It is not intended as a means to create secondary loops on the page. If you want to create separate Loops outside of the main one, you should use get_posts() instead. Use of query_posts() on loops other than the main one can result in your main loop becoming incorrect and possibly displaying things that you were not expecting.

    May be it will be a good idea to use get_posts() for short news block.

    Also you can add &aspo=vanilla parameter to query vars. It will disable Astickypostorder for that query.
    <?php query_posts('tag=immo&showposts=4&aspo=vanilla');while (have_posts()) : the_post() ; ?>

  9. tostaki1
    Member
    Posted 3 years ago #

    yes, it works!!! I have add &aspo=vanilla and it's the date order which is displayed

    Thanks a lot, it has make me mad...
    But where is the documentation of the plugin?

  10. hafer
    Member
    Posted 3 years ago #

    I have an error with your fix. I get this error message:

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /.../wp-content/plugins/astickypostorderer/astickypostorderer.php on line 213

    what can I do?

  11. Max Bond
    Member
    Posted 3 years ago #

    hafer!
    I have fixed this warning. Download new version of the patch (0.9.4).

    By the way. It looks like your WP configured with WP_DEBUG option set to true. It is a security risk. I recommend to switch this option off. Look at your wp-config.php for the following line:
    define('WP_DEBUG', true);
    delete it or make a comment:
    //define('WP_DEBUG', true);

  12. hafer
    Member
    Posted 3 years ago #

    Hi Max Bond,

    you are the best! Now it's works!

    and thank you for the tip with the debug mode!

  13. tostaki1
    Member
    Posted 3 years ago #

    Hello Max,

    I have a new problem:

    Out of memory (allocated 20185088) (tried to allocate 43522 bytes) in /homepages/41/d323367702/htdocs/wp-content/plugins/astickypostorderer/croer-functions.php on line 162

    What can I do??

  14. Max Bond
    Member
    Posted 3 years ago #

    Hello, tostaki1!

    What is your php memory limit value?
    20185088 bytes ~= 20 Mb - not very much for WP.
    Increase php memory limit to 32 / 64 Mb.

  15. taschenck
    Member
    Posted 3 years ago #

    Nice job Max. Thank you for stepping up to make the fix so this great plugin can continue to work.

  16. tostaki1
    Member
    Posted 3 years ago #

    I've increased the limit to 72mb in wp-config.php, but it doesn't work too... My provider is 1and1 and normally it allow 90mb

  17. www.agentstaobao.com
    Member
    Posted 3 years ago #

    Thx man for "reanimate" it

  18. Max Bond
    Member
    Posted 3 years ago #

    tostaki1!
    I need to see your phpinfo page.

  19. Emily1
    Member
    Posted 3 years ago #

    I'm trying to make a tag called Featured substicky, but it keeps resetting to default. This worked before I updated to 3.1. Any suggestions?
    Thanks!
    Emily

  20. tostaki1
    Member
    Posted 3 years ago #

  21. Dude01
    Member
    Posted 3 years ago #

    Hello Max, Plugin installed correctly. Can make changes in the order the posts are shown in de back-en. I Save and Refresh", the order is indeed changed in the backend. Now when I go to the site nothing is changed.
    I do not get it.... Please advice.
    Example :
    http://leekerweide.testmij.nu/category/zorgaanbod/woonbegeleiding/
    should have the order set to :
    Begeleiding naar zelfstandig wonen
    Woonbegeleiding
    Locaties

    instead it is displayed as :
    Woonbegeleiding
    Locaties
    Begeleiding naar zelfstandig wonen

    Specs : WP v : 3.1.1.
    and plugin v : 0.3.1

  22. Max Bond
    Member
    Posted 3 years ago #

    Dude01,
    You need to download and install a patched version of AStickyPostOrderER/
    You can take it from here: http://www.q2w3.ru/2011/02/25/3234/

    tostaki1,
    I saw your phpinfo, but... I can't understand why you are getting this error... If you run phpinfo inside wordpress (try this plugin), will you get the same memory limit value?

  23. whyameye
    Member
    Posted 2 years ago #

    is there an update planned for wp 3.2.1? The patch worked great for me when I updated to wp 3.1 but now with wp 3.2.1 it no longer appears to work.

    Thanks in advance,

    -john

  24. whyameye
    Member
    Posted 2 years ago #

    Sorry for the noise. Works fine in wp 3.2.1

  25. Max Bond
    Member
    Posted 2 years ago #

    Hi everyone!
    Now I am working on a new version of Asctickypostorderer.
    And I want to ask you a few questions about how you use this plugin.

    The main question - are you using all this meta-stickiness stuff? I mean Super_Sticky option, Sub-sticky and Droppy.
    Or you are using mainly Default setting just to change natural order of post in categories and on a frontpage (as I did)?

    Why I am asking?
    I have an idea to not use these meta-options in a new version. Because they heavily impacting plugin performance.
    Also I don't like them because if you have several Super-sticky categories, plus several Sub-sticky - the resulted order will became very complicated....

  26. whyameye
    Member
    Posted 2 years ago #

    I'm really glad to hear that there is activity on this plugin! Thank you!

    To answer your question, I do not use the meta-stickiness stuff. I just change the natural order of posts in categories.

    -John

  27. taschenck
    Member
    Posted 2 years ago #

    Thanks for your work Max.

    My answer is the same as whyameye

  28. slocs777
    Member
    Posted 2 years ago #

    I haven't used product but my goal is to 1-2 sticky posts at top of each category and then let the remaining appear in their natural order

  29. AndreSC
    Member
    Plugin Author

    Posted 2 years ago #

    Just to quickly applaud Max's effort and helpfulness!

  30. Max Bond
    Member
    Posted 2 years ago #

    Hi, guys!

    I have a new. Now my patch available as a separate plugin:
    Q2W3 Post Order
    Updates and support are included! )

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic