WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Updating a Post removes it from the custom order

[Resolved] Updating a Post removes it from the custom order

Viewing 15 replies - 1 through 15 (of 17 total)
  • 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…

    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.

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

    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

    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

    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

    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.

    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

    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.

    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.

    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

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

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

    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

    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

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘[Resolved] Updating a Post removes it from the custom order’ is closed to new replies.