WordPress.org

Ready to get started?Download WordPress

Forums

ReOrder Post Within Categories
[resolved] [closed] Updating a Post removes it from the custom order (18 posts)

  1. Faison
    Member
    Posted 7 months ago #

    Great plugin, Aurelien, it saves me a lot of time.

    One issue we just came across, though, is that whenever we update a post, it seems to reduce the number of posts shown in a category by one. I don't understand it, but will look into how to fix it now, but please, if you can take care of it soon that would be great!

    Thanks,
    Faison

    http://wordpress.org/plugins/reorder-post-within-categories/

  2. plpproductions
    Member
    Posted 6 months ago #

    I'm having this same issue, too. I've found that if you deactivate and reactivate, it will show up - but of course, this deletes all your orders - so kind of useless.

    Hoping they update this issue asap...otherwise will have to buy premium plugin...

  3. webjai
    Member
    Posted 6 months ago #

    I'm having the same issue. The plugin has been working great for a long time, but now it's becoming unusable with this weird disappearing issue.

  4. Lui Amisola
    Member
    Posted 6 months ago #

    Same issue kindly fix or someone can give us a solution.

  5. Faison
    Member
    Posted 6 months ago #

    Since I couldn't find a good alternative plugin, I worked out a solution for this one.

    I didn't paste the complete changed file in this gist, as I want the plugin author to see how to fix it. Because of that, you will also have to make some manual copy-paste changes to the file mentioned in the solution.
    https://gist.github.com/Faison/8530044

    To the Author, aurelien, Please use the code I provided above to fix this plugin. And if not that code, fix it some how and release an update soon.

    If you don't want to maintain your plugin, you should really look into removing it from the plugin repo, or giving the plugin to someone who wants to maintain it (not me).

    Thanks,
    Faison

  6. Faison
    Member
    Posted 6 months ago #

    Aurelien,

    I saw you released an update and I was excited, at least I was until I saw the changelog: "Add DE_de language". Are you seriously more worried about including more languages in your plugin, than you are about having a broken plugin?!

    Apparently you don't care that your plugin is broken, because if you did, you would have taken the information from the gist I provided and fixed your broken plugin.

    Everyone, if he doesn't fix this plugin by Saturday, I'm going to start making my own plugin, which will be in GitHub, which will promote your ability to contribute to the plugin if you find any bugs. Link to follow.

    Thanks,
    Faison

  7. eldehel
    Member
    Posted 5 months ago #

    Hi Faison,

    First of all, thanks to share your code with us!
    I tried your fix, but for me it didn't fix the problem at all, it's not worst, just same as before, wich is : if i activate the manual sort, then if I update a post, then I have to activate, reactivate manual sort untill it works... and display all posts.

    So it's ok when you dev but not ok for a client wich is not a besta tester...

    So the bug is still here, if this happens during updating a post, I'm thinking more about this function :

    //verify post is not a revision
    if ( !wp_is_post_revision( $post_id ) ) {

    I don't know exactly, but i will try...

    How about your own plugin ? ^^

    Best regards,
    eldehel

  8. bronw3n
    Member
    Posted 5 months ago #

    Faison -
    I tried your code fix too, and it didn't work for me either. But thanks truly for the effort.

    The problem I'm having it that no matter how I re-order the posts, the last post in the list always gets dropped.

    Please let us know if you develop your own plugin.

  9. Faison
    Member
    Posted 5 months ago #

    Hi eldehel and bronw3n,

    It looks like my fix stopped working for me >_<

    And unfortunately I've been dealing with some home plumbing issues recently so I haven't been able to start work on it yet, but I have a lot of time Thursday night :)

    Anyways, I just scanned the plugins that are out there and it looks like this one might work: https://wordpress.org/plugins/custom-post-order-category/

    I'm going to try it tomorrow for a work project that I was experiencing this issue on. It has a less-than-ideal interface though, so I'm not sure how much I'll like it, but if it works I'll tell you both. But if it doesn't work well enough for me, I'm going to start working on it and you can follow the development on my GitHub here.

    Thanks,
    Faison

  10. Korvus Sangril
    Member
    Posted 5 months ago #

    This bug really makes a problem for this plugin.

    Just to comment first few posts. This bug does not reduce one post, it reduces the updated post which is put on the end of the list of posts for that category. All you need to do is drag and drop updated post on wished position and it will reappear. There is no need for reactivation of the plugin and losing configuration.

    Still needs to be fixed. Hope it will.

  11. bronw3n
    Member
    Posted 5 months ago #

    Korvus - I have had that problem, but when I move the updated post back to the first position, then the last post in the list disappears.

    Faison - thanks for the heads-up about the other plugin. I'm going to give that one a try too.

  12. Faison
    Member
    Posted 5 months ago #

    Hi Korvus,

    Thanks for the input. Hopefully getting more people to respond to this thread will get Aurelien's attention. <deleted message about a paid version: I was looking at a similar plugin>

    Also, what bronw3n said is 100% right.

    And for everyone: The plugin I linked to does not work for custom taxonomies, it only works for the default Categories. So it does not work for me. I'm going to take one more gander at the code on this plugin to see if I can salvage it for now. If I succeed, I'll make a GitHub repo that I will only maintain until I create a plugin that I like.

    Thanks everyone,
    Faison

  13. alteredpages
    Member
    Posted 5 months ago #

    Shame I thought this plugin was fantastic until I encountered this problem, cant find anything else that works in the same way. Please fix!!!!!!

  14. cesarsturm
    Member
    Posted 4 months ago #

    I have the same problem, try to resolve it with de patch but without results... anybody can do anything?

  15. Faison
    Member
    Posted 4 months ago #

    Ok everyone, I have a fix up for you all.

    It's actually the same fix as before, but I determined that if you were already affected by the bug, you need to update each post, that can be reordered, after installing the version located in my GitHub Repo located here: https://github.com/Faison/reorder-post-within-categories

    And for the Plugin Author: Please get the fix from my repo, you can find the changes here: https://github.com/Faison/reorder-post-within-categories/commit/9120df5edbbf92e4044f4427b8f47af5ab8b897c

    Thanks,
    Faison

  16. nyepad
    Member
    Posted 4 months ago #

    Faison,

    Man, you are a lifesaver! Thank you for working on this. This functionality is crucial to a project I am working on, and I was at the crossroads of either attempting to debug or creating an alternative from scratch. Your fix works perfectly though, so thanks again!

    Also, one quick addition regarding the fix: Instead of having to update every post, I found that simply deactivating and reactivating the plugin with your patch implemented works as well. Not sure if that will work for everyone, but if so, it might save some time depending on how many posts/taxonomies there are.

    Thanks again!
    Matt

  17. Faison
    Member
    Posted 4 months ago #

    Thanks nyepad,

    I'll add the fix that worked for you in the GitHub readme.

    Thanks,
    Faison

  18. cesarsturm
    Member
    Posted 4 months ago #

    I had some other problem that is not happened. In the frontend only displayed 19 of 22 publications. Anyone know how to change the amount? I know that the problem is with the plugin, because qhen I disable it , all publications are visibles

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.