Tagged: post slider, product slider
Hello there
I have a bug on the theme. When I place a post slider and woocommerce product grid on the same page, posts dont display at all.
Please let me know how to fix this as I wish to display products and posts on my homepage.
Thank you :)
Andrea
Hey Gurify!
Thank you for using the theme!
I tested this on my end and it works fine which tells me that you’re either using an old version of the theme or a plugin is causing the issue. We would like to see the actual website in action. Please post the website url here. We will give you a response once we have taken a look at the actual page. Thanks!
Best regards,
Ismael
Hi!
Please create us an admin account and post the login credentials as private reply – we’ll look into it.
Best regards,
Peter
Hey!
I temporarily fixed it by replacing this code in enfold/config-templatebuilder/avia-shortcodes/productslider.php:
$ordering_args = $woocommerce->query->get_catalog_ordering_args( $orderBY, $order );
with
$ordering_args = $woocommerce->query->get_catalog_ordering_args( $orderBY, $order );
if($orderBY == 'popularity' || $orderBY == 'rating')
{
remove_filter( 'posts_clauses', array( WC()->query, 'order_by_popularity_post_clauses' ) );
remove_filter( 'posts_clauses', array( WC()->query, 'order_by_rating_post_clauses' ) );
}
I’ll ask Kriesi to fix the issue with the next update.
Cheers!
Peter