get post image in wordpress

To get Post image use following code:

You can also get the woo-commerce product image using same code.  

get woocommerce product category

You can assign one/many categories to a product through wordpress backend. Use following code to get the product category:

get latitude longitude from an address in php

Use following code to get the latitude longitude of an address:  

  Share This: