• Resolved redlaw03

    (@aetas03)


    I am trying to display a spesific product by sku on a custom html page template which I place in /wp-content/themes/child-theme and then I set the page in wordpress with templates.

    I tried <?php echo do_shortcode("[product sku="MyProductSKU"]"); ?> , but It makes the page display the error “site currently unavailable” when you browse to the page. Any suggestions on how to display product by sku in custom page templates would be appreciated.

    T.I.A

Viewing 1 replies (of 1 total)
  • Thread Starter redlaw03

    (@aetas03)

    Solved: the answer is to use single qoutes instead of double qoutes around ‘MyProductSKU’

    • This reply was modified 5 years, 5 months ago by redlaw03.
Viewing 1 replies (of 1 total)
  • The topic ‘How to display product by sku in custom html page template’ is closed to new replies.