SyntaxFix
Write A Post
Hire A Developer
Questions
Retrieve the ID of the current item in the WordPress Loop.
echo get_the_ID();
hence works for the product id too. #tested #woo-commerce