Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #879652

    I have a shortcode in a Text box like so

    [product_category category=”teddy-bear-soft-toys” columns=”4″ number=”8″]

    No matter what I change number to, it still continues to show 12 items on the page itself.

    This is the page https://www.natures-collection.com

    #879712

    Hey nychng,

    Can you try adding this at the bottom of functions.php:

    add_filter( 'loop_shop_per_page', 'new_loop_shop_per_page', 20 );
    
    function new_loop_shop_per_page( $cols ) {
      // Return the number of products you wanna show per page.
      $cols = 8;
      return $cols;
    }

    Hope this helps :)

    Best regards,
    Nikko

    #879714

    Hi Nikko,

    I dont think this solves my issue.

    I just want the section in which my shortcode appears, to show the right number of products. The product count simply won’t “refresh”.

    #880297

    Hi,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
      ( do be sure that we have enough time to debug ).
    5. Click ” Submit “.
    6. You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.

    When your issue is fixed, you can always remove the plugin!
    If you prefer to not use the plugin, you can manually create a admin user and post the login credentials in the “private data” field.

    Best regards,
    Nikko

    #891973
    This reply has been marked as private.
    #892105

    Hi,

    Thanks for the login, did you try clearing the cache from your caching plugin?

    Best regards,
    Rikard

    #892114

    Yes, and I have disabled it as well.

    #892236

    Hi nychng,

    It should be limit, not number

    
    [product_category category="teddy-bear-soft-toys" columns="4" limit="8"]
    

    Shortcodes included with WooCommerce

    Best regards,
    Victoria

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.