How to get the post thumbnail url or attachment url

How to get the post thumbnail src or attachment url If you are getting the post thumbnail on a single post page then use following code. <?php $image = wp_get_attachment_image_src(get_post_thumbnail_id($post_id), “full”); echo “<pre>”; print_r($image); echo “</pre>”; echo $image_src = $image[0]; ?>   For other than single.php page you can use following code (the only difference …

How to get the post thumbnail url or attachment url Read More »

How to get currency symbol in Woocommerce website

How to get currency symbol in Woocommerce website using functions. You can get woocommece currency symbol on any plugin or custom page template by using following codes.   <?php echo get_option(‘woocommerce_currency’); ?> <?php echo get_woocommerce_currency_symbol(); ?> <?php $product_price = 60; echo wc_price($product_price); ?>   Please watch below video to understand more.