Next/Previous Product with custom order by price & products inside the product category [closed]
I managed to modify an existing answer from a closely related thread to achieve this. You can find the answer from the related thread here. https://wordpress.stackexchange.com/a/365334/185141 add_action(‘woocommerce_before_single_product’, ‘elron_prev_next_product’); // and if you also want them at the bottom… add_action(‘woocommerce_after_single_product’, ‘elron_prev_next_product’); function elron_prev_next_product() { global $post; echo ‘<div class=”prev-next-buttons”>’; $terms = get_the_terms( $product->id, ‘product_cat’ ); foreach … Read more