simple-custom-post-order icon indicating copy to clipboard operation
simple-custom-post-order copied to clipboard

reordering posts

Open mplusb opened this issue 7 years ago • 5 comments

I am finding that the plugin will often leave posts with the same order value as other posts after dragging, which means they won’t necessarily actually be in the correct order. Here’s a video of me trying to reorder some posts:

https://www.dropbox.com/s/shgxcn39dhpl19z/SCPO.mov?dl=0

Twentyseventeen with a CPT created with Pods. I drag and drop to reorder, then reload the page to see if the order will stick.

mplusb avatar Dec 04 '18 10:12 mplusb

Works good on my side. Do you have any other plugins installed that controls the order ?

razvanaldea89 avatar Dec 19 '18 12:12 razvanaldea89

from his feedback, there were no other plugins installed: https://wordpress.org/support/topic/often-doesnt-change-order-values/

mplusb avatar Dec 19 '18 12:12 mplusb

Well, the user says that no other plugins were installed, but from the video at least one plugin is installed : Jetpack

razvanaldea89 avatar Jan 03 '19 07:01 razvanaldea89

Hi all,

I have done some debugging as I'm experiencing the same issue as @mplusb

As you will see from the HTML markup below that 14655 comes before 14659: issue-1

But when querying the database I get the opposite: issue-2

I believe the plugin to be working correctly as I have debugged at every stage of the reordering process and found no issues. I have also checked the plugin is resetting the orderby to menu_order and to order to ASC (which it does). That said it still doesn't explain why it is happening, I am running on Wordpress 5.0.2 and using WooCommerce for my products post type.

I have however worked something out which definitely solves my issue in the meantime. Forcing the state by clicking on the sort tab as seen here below: workaround-1

I get the correct order for my products and stays corrected when I refresh. If you cannot see this tab then you can try the following URL: edit.php?post_type=[CUSTOM POST TYPE HERE]&orderby=menu_order&order=ASC

If this becomes an issue on more sites then may require further investigation.

dominic-cw avatar Jan 04 '19 16:01 dominic-cw

I have tested this with a Pods-generated CPT, can't replicate the bug.

wiegertschouten avatar Dec 16 '24 14:12 wiegertschouten