
-
AuthorPosts
-
June 17, 2020 at 9:19 am #1223272
Dear Support Team.
I am happy to move a big site from Betheme to Enfold, my all time favourite WP Theme.
However, I have stumbled upon a critical issue which I am not able to solve and kindly ask for support.
Context: Using ACF, I have a Taxonomy Field with Multi Select in which I select some services (Woocommerce Produts) related to a product. In the backend the services can be sorted using drag and drop.
Issue: Enfold seems to override the sorting order in the frontend and sorts the products alphabetically instead of the order in the ACF backend.
Scope: This is an Enfold issue, as all other variables (code and plugins) are identical in the two sites I am comparing (betheme vs enfold).
Request: Which part of the code overrides the sorting of ACF in the backend and / or how can I disable that?
Have tried (without success):
– https://kriesi.at/support/topic/function-to-remove-woocommerce-product-sorting/
– All options in the wp admin regarding sorting, it always sorts by product name.
– Css will obviously point useless here.Looking forward to hearing from you.
Access to the site from external parties is not possible due to company policy.
-
This topic was modified 4 years, 8 months ago by
alvaromasiammp.
June 23, 2020 at 10:57 am #1224806Hey alvaromasiammp,
Sorry for the delay. We are not yet sure what’s affecting the sorting of the taxonomy field, but it could be a filter that sorts the terms beforehand. Can we access the site?
Best regards,
IsmaelJune 23, 2020 at 11:41 am #1224824This reply has been marked as private.June 24, 2020 at 4:54 pm #1225283Hi,
How did you create the “Regal aufbauen” and “Regal abbauen” services? We are having a bit of difficulty navigating the site because of the language.
We went through the filters and actions included in the theme, but we can’t find anything that sorts the taxonomy terms. In which taxonomy do the services “Regal aufbauen” and “Regal abbauen” belong?
Best regards,
IsmaelJune 26, 2020 at 10:23 am #1225761This reply has been marked as private.June 29, 2020 at 7:21 pm #1226550Hi support.
Unfortunately after 12 days of my initial query we are not much further.
Is there anything I can do to expedit this? It is becoming a bit critical to our timeline.
Hope to hear from you soon.
Alvaro
June 30, 2020 at 1:01 pm #1226722Hi,
Sorry for the delay. We can’t really find anything in the theme that alters the product sorting, but it looks like ACF allows you to change the sorting or order of the Post Objects. Unfortunately, we are not sure if it’s possible to sort them based on how they were arranged in the product editor.
// https://support.advancedcustomfields.com/forums/topic/post-object-field-sort-order/
Example:
// function my_post_object_query( $args, $field, $post ) { // modify the order $args['orderby'] = 'date'; $args['order'] = 'DESC'; return $args; } // filter for a specific field based on it's name add_filter('acf/fields/post_object/query/name=heft', 'my_post_object_query', 10, 3);
We’ll tag one of our developers to check the thread.
Best regards,
IsmaelJune 30, 2020 at 2:27 pm #1226757This reply has been marked as private.June 30, 2020 at 2:54 pm #1226767This reply has been marked as private.July 1, 2020 at 9:12 am #1227157Hi!
That is actually one of the first things that we checked — pre_get_posts used in the theme, and there’s only 5 instances, but none of them relates to the sorting of the taxonomy terms or products.
And yes, you can use that filter to adjust the sorting of the Post Object. It’s actually the same filter that we posted previously.
Best regards,
Ismael -
This topic was modified 4 years, 8 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.