I am trying to show the price of a product in a post by code using HTML.
I am trying to utilize $product->get_price()
. however, I need to be able to call the product by identifying it, using its code or something like it.
So Basically, all I want to do is to show the price of a particular product in the post by using a product ID as reference for example.
Any idea?