Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reordering posts #25

Open
mplusb opened this issue Dec 4, 2018 · 4 comments
Open

reordering posts #25

mplusb opened this issue Dec 4, 2018 · 4 comments
Labels

Comments

@mplusb
Copy link

mplusb commented Dec 4, 2018

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.

@razvanaldea89
Copy link
Contributor

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

@mplusb
Copy link
Author

mplusb commented Dec 19, 2018

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

@razvanaldea89
Copy link
Contributor

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

@DrGrimshaw
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants