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

    Hi
    I use custom pages for certain high level product categories (eg. https://silviafindings.com/pendant-settings).
    I use the WooCommerce pagination on those category custom pages using the following code snippet which who had provided me with a while ago:

    add_action( 'wp', function() {
        if( ! is_product_category() ) {
            //add woo pagination back on custom pages
            if( is_page( array(96860, 96861, 81871, 96862, 96858, 81555, 81864, 81868 ) ) ) {
                add_action( 'woocommerce_after_shop_loop', 'woocommerce_pagination', 10 ); 
            }
        }
    }, 999);

    This ID 8155 is the custom page for pendant settings which is listed in the code snipett. I don’t understand why it stopped working.

    Can you help me again, as soon as possible, to figure out why pagination is not longer working (although the URL indicates the page selected, yet it stays on page 1).

    Thank you
    Lyse

    #1402068

    Hi
    I updated the code snippet and now it works.
    Thanks
    Lyse

    #1402084

    Hi Lyse,

    We’re glad that you sorted it out :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Enable WooCommerce pagination back on custom pages’ is closed to new replies.