WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. redindie
    Member
    Posted 11 months 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 11 months 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 11 months ago #

    See all products from this category

  4. Roy Ho
    Member
    Posted 11 months 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 11 months ago #

    Now I see the pagination in the URL of the category

  6. redindie
    Member
    Posted 11 months ago #

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

  7. Roy Ho
    Member
    Posted 11 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags