WordPress.org

Forums

WooCommerce - excelling eCommerce
[resolved] pagination for product shortcode not work (7 posts)

  1. redindie
    Member
    Posted 1 year ago #

    I set up several pages with product shortcodes like this:

    [product_category category="libros" per_page="4" columns="2" orderby="date" order="desc"]

    but the pagination not shown. Why?

    WordPress 3.6
    Woocommerce 2.0.13

    http://wordpress.org/plugins/woocommerce/

  2. Roy Ho
    Member
    Posted 1 year ago #

    What if you don't use the shortcode and just go to that category via URL, what do you see then?

  3. redindie
    Member
    Posted 1 year ago #

    See all products from this category

  4. Roy Ho
    Member
    Posted 1 year ago #

    Ok put this in your theme's functions.php file

    add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 4;' ), 20 );

    And then try the category via URL and see if pagination shows up.

  5. redindie
    Member
    Posted 1 year ago #

    Now I see the pagination in the URL of the category

  6. redindie
    Member
    Posted 1 year ago #

    but still the pagination does not appear with the shortcode. Thanks, your help is helping much.

  7. Roy Ho
    Member
    Posted 1 year ago #

    I looked at the code that generates the products for the shortcode and I don't see any indication that there was suppose to be pagination so perhaps it was not designed to use pagination. You could certainly add your own though.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags