• Resolved underro

    (@underro)


    Hello there.
    In one page I want to show me all the products in a certain category.
    I used a shortcode for this.
    [product_category category=“cat x” per_page=”12″ columns=”4″ paginate=”true” orderby=”default” order=”asc”]
    Everything OK.

    The only problem is that the pagination does not work. It appears for a few seconds (both at the top of the page SHORT BY and ROW GRID, as well as at the bottom of the page, the pagination itself) and then disappears (in the other/default loop pages, it works).

    I tried that too, but it still doesn’t work.

    add_action(‘after_setup_theme’, function() {
    add_action( ‘woocommerce_after_shop_loop’, ‘woocommerce_pagination’, 10 );
    });

    I use the Porto theme, Gutenberg, everything up to date
    No cache, no optimisation plugin, clear transients, refresh…

    How can I solve this situation please?
    Thank you.

    • This topic was modified 2 years, 5 months ago by underro.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there @underro ??

    In one page I want to show me all the products in a certain category.
    I used a shortcode for this.
    [product_category category=“cat x” per_page=”12″ columns=”4″ paginate=”true” orderby=”default” order=”asc”]
    Everything OK.

    This is great to read. For a list of shortcodes included with WooCommerce, feel free to have a look here: https://woocommerce.com/document/woocommerce-shortcodes/

    I use the Porto theme, Gutenberg, everything up to date
    No cache, no optimisation plugin, clear transients, refresh…

    How can I solve this situation please?

    As a first step, please check if the same happens when you deactivate all other plugins except WooCommerce, and change the theme to a default WP theme like Twenty Twenty-One or Storefront.

    You can read more here on how to do a conflict test here: https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    If you’re not seeing the same behavior after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated.

    Reactivate the theme first and check again. Then, go on and reactivate your other plugins one by one, testing after each, until you find the one causing conflict.

    If the above test does not yield a culprit, please share with us a copy of your site’s System Status. You can find it via WooCommerce > Status. Select Get system report and then Copy for support. Once you’ve done that, paste it here in your response.

    Thread Starter underro

    (@underro)

    Hi.
    And thank you for the answer.
    I disabled the plugins…. and the theme.
    Pagination works with Storefront.

    Saif

    (@babylon1999)

    Hello @underro,

    I’m glad we were able to help! The next step is to contact your theme author to learn more about this.

    I will go ahead and mark the thread as solved. If you have a few minutes, we’d love it if you could leave us a review: https://www.ads-software.com/support/plugin/woocommerce/reviews/

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Pagination and shortcode’ is closed to new replies.