I have simple custom post type with few fields (testimonials cpt). I need to sort them by date, where date is one of the custom fields. When I sort them in page where I showcase all of them in descending mode (latest first) everything seems fine, please check this page:
But when I want to showcase them in slider mode on home page by same order (descending, newest first), the first post is the newest one (sorted by this date field) but the next one is the oldest one and so one. Please check this home page:
You can also check my custom page with title and date, sorted by this date in descending mode.
Hello, can you show me how the slider is added on the homepage and also how it is added on the testimonial page? For example, if the View is inserted with a shortcode please copy + paste the shortcodes here for me to review. If it's inserted with a Block, please select the View block in the block editor and show me a screenshot of the block configurations in the right column. There are configurations in either case that can override the sorting you have applied in the View editor screen, so I'm curious if this is why the sorting is different.
Okay so I don't see any shortcode overrides here. Something else must be going on. Is it possible to run a quick test where you place all the Views on the same custom Page, deactivate all plugins except Types and Views (or Blocks), and activate a default theme like Twenty Twenty? If you need to activate a plugin for Maintenance Mode during testing, that's fine. That will help us rule out a possible conflict with another plugin or theme.
If the results are sorted correctly in this test, try reactivating your theme and other plugins one by one until the problem returns. If the results are not correct in this test, I'll need to take a closer look. Please let me know the results and we can go from there.
Right, do you have a test environment or staging environment set up? If not, I can create a clone of the site and run tests on my local environment. I would need to log into your site's wp-admin area and install the Duplicator plugin to create a site clone. Let me know how you would like to proceed.
There seems to be a conflict with the Post Types Order plugin. Please look at the dev environment now, I have disabled all plugins except Toolset, WPBakery and the Post Types Order plugin. You can see on the homepage the order is incorrect, but if you disable the Post Type Order plugin the order is displayed as expected. Can you confirm this?