• Resolved softsleepysounds

    (@softsleepysounds)


    I am trying to use a Woocommerce shortcode to display a list of products in a post. The code that I am using is:

    [products limit="-1" columns="4" orderby="include" ids=”10775,7447,9855,17892,10521,1626,18415,9354,5550,16633”]
    
    [products limit="15" columns="3" orderby="include" ids=”11496,3841,9927,17857,15856,19025,9932,18287,17304,18979,18296,6837,18573,12844,18341”]

    In both cases the shortcode displays the products but drops one, and I don’t know why. In the first example it displays 9 of 10 items and the second 14 of 15.

    Could you please help?
    Thanks in advance ??

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support wpnomad a11n

    (@wpnomad)

    Hi @softsleepysounds ,

    The limit attribute is used when you’re adding products by categories or tags and such. In this case, since you have manually added the product Ids, and you want to show them all, you do not need to add the limit attribute.

    Please try removing the limit attribute altogether and try the shortcode. After removing the limit attribute, your shortcode would be:

    
    [products columns="4" orderby="include" ids=”10775,7447,9855,17892,10521,1626,18415,9354,5550,16633”]
    
    [products columns="3" orderby="include" ids=”11496,3841,9927,17857,15856,19025,9932,18287,17304,18979,18296,6837,18573,12844,18341”]
    
    Thread Starter softsleepysounds

    (@softsleepysounds)

    Thanks so much, Ashish!

    I really appreciate your reply!

    As it turns out, there was a small error in the syntax of the shortcode. The ” was a curly quotation mark at the start of the ids (see above) and so, changing this to ” fixed the problem.

    It pays to be careful with detail. Even something as small as a different quotation mark can throw things out!

    Cheers and thanks ??
    Sarah

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘problems with woocommerce shortcodes displaying products’ is closed to new replies.