Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #456225

    Hello there!

    We are using Enfold theme with woocommerce.

    Please look at this link : https://kriesi.at/support/topic/how-to-adjust-category-post-navigation/ we used the function to order by category next / prev post or portfolio items and it works great.
    We tried to do the same thing with woocommerce products but it doesn’t work.
    There is any way to solve this?

    thanks in advance
    Superhub

    #456493

    Hi sigifinsrl!

    Thank you for using Enfold.

    Try to replace the code with this:

    add_filter('avia_post_nav_settings', 'avia_post_nav_settings_mod');
    function avia_post_nav_settings_mod($settings)
    {
      if(is_singular('product')) {
        $settings['taxonomy'] = 'product_cat';
      }
    	$settings['same_category'] = true;
    	return $settings;
    }

    Best regards,
    Ismael

    #456556

    Hi Ismael,
    it works, thank you very much for your support!

    Best
    Superhub

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘next/prev arrows for products’ is closed to new replies.